extract first

This commit is contained in:
Mario Fetka
2013-05-06 13:33:28 +02:00
parent dcba3c3faf
commit 40a20f426b
2 changed files with 15 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ DefVar $ExitCode$
DefVar $OLD_VERSION$
DefVar $OLD_CREATOR_TAG$
DefVar $OLD_RELEASE$
DevVar $RealInstallMsi$
Set $LogDir$ = "%SystemDrive%\tmp"
@@ -41,6 +42,8 @@ Set $MinimumSpace$ = "100 MB"
Set $InstallDir$ = "%ProgramFiles64Dir%\Waterfox"
; ----------------------------------------------------------------
Set $RealInstallMsi$ = $LogDir$ + "\" + $ExtractDir$ + "\" + $InstallMsi$
Set $IniCfgFile$ = "%ScriptPath%\opsi-" + $ProductId$ + ".ini"
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
@@ -60,6 +63,8 @@ else
comment "Start setup program"
ChangeDirectory "%SCRIPTPATH%"
Winbatch_extract
Sub_check_exitcode
Winbatch_install
Sub_check_exitcode
@@ -74,9 +79,11 @@ else
endif
[Winbatch_extract]
"$InstallExe$" /extract:"$LogDir$"
[Winbatch_install]
"$InstallExe$" /qb /l* "$LogDir$\$ProductId$.install_log.txt" ALLUSERS=1 REBOOT=ReallySuppress
; msiexec /i "%ScriptPath%\some.msi" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=1 REBOOT=ReallySuppress
msiexec /i "$RealInstallMsi$" /l* "$LogDir$\$ProductId$.install_log.txt" /qb ALLUSERS=1 REBOOT=ReallySuppress
[Files_install]
; copy the ini file to the InstallDir