I use a function
At runtime, trying to install both jre_v1.5 and Acrobat Reader v7.0.9:
###################
# InstallQuietMSI #
###################
# MSI Installer launcher in quiet mode
#
# Inputs:
# - Stack Top -
# 0: installer executable
# 1: installer path
#
# Returns:
# - Stack Top -
# 0: installation returned code
##
Function InstallQuietMSI
Exch $R0
Exch
Exch $R1
Push $0
setOutPath "$SYSDIR"
MessageBox MB_OK 'MSI: "$R1\$R0" /quiet /norestart'
ExecWait '"$R1\$R0" /quiet /norestart' $0
MessageBox MB_OK "RC: $0"
Exch $0
Exch 2
Pop $R1
Pop $R0
FunctionEnd
> Execute: "ressources\tools\Adobe\en\adobe.msi" /qb
(the returned code $0 is not set at all (contains previous value))
> Execute: "ressources\tools\JRE\jre-1_5_0_11-windows-i586-p.exe" /qb
(the returned code is 0, everything run well and install is process)
I tried to do that in a shell window (from the dir containing the setup.exe):
> C:\Documents and Settings\galevsky\Desktop\validation\"ressources\tools\Adobe\fr\adobe.msi" /quiet
and it works pretty good. The adobe.msi file (with a Data1.cab one) was picked up into INSTDIR\Setup Files\ of Acrobat Reader v7.
So, what is wrong ? Is there any strange behaviour with ExecWait ? I tried a "msiexec" /i path\adobe.msi but same behaviour happened...
Thks for your help,
Gal'