[Initial] SetLogLevel = 6 ExitOnError = True ScriptErrorMessages = Off TraceMode = Off StayOnTop = False [Actions] Message "Prepare..." RequiredWinstVersion >= "4.11.3" DefVar $DefaultLogLevel$ DefVar $MinimumSpace$ DefVar $ProductName$ DefVar $ProductVersion$ DefVar $Setup_Arguments$ DefVar $Setup_ExeActiveX$ DefVar $Setup_ExePlugin$ DefVar $Temp_ExitCode$ DefVar $Temp_Message$ DefVar $Temp_Setup_Exe$ DefVar $Uninstall_Arguments$ DefVar $Path_SetupData$ Set $DefaultLogLevel$ = "6" Set $MinimumSpace$ = "20 MB" Set $Path_SetupData$ = "%ScriptPath%\setup_data" Set $ProductName$ = "Flash Player" Set $ProductVersion$ = "13.0.0.206" Set $Setup_ExeActiveX$ = $Path_SetupData$ + "\install_flash_player_13_active_x.exe" Set $Setup_ExePlugin$ = $Path_SetupData$ + "\install_flash_player_13_plugin.exe" Set $Temp_Message$ = "" ShowBitMap "%ScriptPath%\flashplayer.png" $ProductName$ SetLogLevel = $DefaultLogLevel$ If Not ( HasMinimumSpace ( "%SystemDrive%", $MinimumSpace$ ) ) Set $Temp_Message$ = "Fatal error: Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductName$ Message $Temp_Message$ LogError $Temp_Message$ IsFatalError $Temp_Message$ EndIf If Not ( FileExists ( $Setup_ExePlugin$ ) ) And Not ( FileExists ( $Setup_ExePlugin$ ) ) Set $Temp_Message$ = "Fatal error: File not found: " + $Setup_ExeActiveX$ + " _AND_ " + $Setup_ExePlugin$ Message $Temp_Message$ LogError $Temp_Message$ IsFatalError $Temp_Message$ EndIf Message "Install/Update " + $ProductName$ + " " + $ProductVersion$ Sub "%ScriptPath%\delsub.ins" If FileExists ( $Setup_ExeActiveX$ ) Set $Setup_Arguments$ = "-install" Set $Temp_Setup_Exe$ = $Setup_ExeActiveX$ Message "Install/Update " + $ProductName$ + " " + $ProductVersion$ + " ActiveX" WinBatch_Install Sub "%ScriptPath%\check_msi-exitcode.ins" Message "Install/Update " + $ProductName$ + " " + $ProductVersion$ + " ActiveX done." Else Message "File not found: " + $Setup_ExeActiveX$ LogWarning "File not found: " + $Setup_ExeActiveX$ EndIf If FileExists ( $Setup_ExePlugin$ ) Set $Setup_Arguments$ = "-install" Set $Temp_Setup_Exe$ = $Setup_ExePlugin$ Message "Install/Update " + $ProductName$ + " " + $ProductVersion$ + " Plugin" WinBatch_Install Sub "%ScriptPath%\check_msi-exitcode.ins" Message "Install/Update " + $ProductName$ + " " + $ProductVersion$ + " Plugin done" Else Message "File not found: " + $Setup_ExePlugin$ LogWarning "File not found: " + $Setup_ExePlugin$ EndIf Message "Install/Update complete" [WinBatch_Install] "$Temp_Setup_Exe$" $Setup_Arguments$