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

View File

@ -26,6 +26,12 @@ DL_WINST_NAME[1]=InstallExe
# File array index for the image showing while installing the program
ICON_DL_INDEX=0
WINST_NAME[0]="InstallMsi"
WINST_VALUE[0]="Watefox Setup.msi"
WINST_NAME[1]="ExtractDir"
WINST_VALUE[1]="86C0563"
OPSI_INI_SECTION[0]="X86_64"
OPSI_INI_OPTION[0]="MsiId"
OPSI_INI_VALUE[0]="{FD7DEB7B-8CEA-44E5-AB2D-7C66786C0563}"