[Initial] SetLogLevel = 5 ExitOnError = True ScriptErrorMessages = On TraceMode = Off StayOnTop = False [Actions] RequiredWinstVersion >= "4.10.5" Message "Prepare..." DefVar $UninstallProgram$ DefVar $LogDir$ DefVar $ProductName$ DefVar $ProductVersion$ DefVar $MinimumSpace$ DefVar $InstallDir$ DefVar $ExitCode$ DefVar $DefaultLogLevel$ DefVar $Setup_Data$ Set $LogDir$ = "%SystemDrive%\tmp" Set $ProductName$ = "PDF 24" Set $ProductVersion$ = "6.3.2" Set $MinimumSpace$ = "41 MB" Set $InstallDir$ = "%ProgramFilesSysnativeDir%\PDF24" Set $DefaultLogLevel$ = "5" Set $Setup_Data$ = "%ScriptPath%\setup_data" ShowBitMap "%ScriptPath%\pdf24_logo.png" $ProductName$ SetLogLevel = $DefaultLogLevel$ If Not ( HasMinimumSpace ( "%SystemDrive%", $MinimumSpace$ )) LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductName$ IsFatalError Else Sub "%ScriptPath%\delsub.ins" Message "Install " + $ProductName$ + " " + $ProductVersion$ WinBatch_install SetLogLevel = 2 Sub "%ScriptPath%\check_msi-exitcode.ins" SetLogLevel = $DefaultLogLevel$ EndIf Message "Install complete" [WinBatch_install] "$Setup_Data$\pdf24-creator.exe" /NOUPDATE /LOADINF="$Setup_Data$\setup.inf" /sp- /verysilent /norestart