Archive: ExecWait issue


ExecWait issue
Hello. I'm trying to silently install the vc redistributables (vcredist_x86.exe) and am having a problem with it not installing.
I'm using the following command.
ExecWait '"$INSTDIR\vcredist_x86.exe" /q:a /c:$\"msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86.log$\"'

Can anyone see anything wrong with this? Am I escaping the quotes correctly in the parameter string?
If I run the same line in the command line it all installs properly. eg)
vcredist_x86.exe /q:a /c:"msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86.log"

Any help would be appreciated.
Thanks.


Try executing the same command using Command Prompt, and take a look at the log files. Also try replacing %temp% with $TEMP, that could be your problem.

-dandaman32


Fixed
Perfect! Using $TEMP fixes the problem.
Thank you.