Archive: Silent install for VS C++ 2008 SP1 Redistributable Package (x86)


Silent install for VS C++ 2008 SP1 Redistributable Package (x86)
Hi all,

I am trying to install the C++ 2008 SP1 Redistributable Package (x86) with no success. I have tried methods that was posted in this forum and other sites:

ExecWait '"vcredist_sp1_x86.exe" /q:a /c:"VCREDI~1.EXE /q:a /c:""msiexec /i vcredist.msi /q"" "'

ExecWait 'vcredist_x86.exe /q:a /c:"vcredist_x86.exe /q"'

ExecWait "vcredist_sp1_x86.exe /q"

ExecWait '"vcredist_sp1_x86.exe" /q:a /c:"VCREDI~1.EXE /q:a /c:""msiexec /i vc_red.msi /q"" "'

ExecWait 'vcredist_sp1_x86.exe /q:a /c:"VCREDI~3.EXE /q:a /c:""msiexec /i vc_red.msi /qn /l*v c:\vcredist_x86.log"" "'

Follow instruction from another forum, I used Winzip to find out what is the name of msi file, which is "vc_red.msi". I then replaced it with above commands, still no luck.

Appreciate any help I can get, thanks!


attach file


What's the error code it gives you? Pass another variable parameter to ExecWait (e.g. $0). This variable would contain the exit code of the installer and it should tell you what's wrong.


thanks kichik for your response. I passed in a parameter and exit code is 0 for all above methods. I guess because installation successful. But they are still not silent install.

I wonder: since I can extract the msi from the exe file, would it be the same if I run installation on the msi itself? I read from another forum it's not recommended because .exe file performs many checks and implement
changes that would not be captured in an .msi package.


So they work but they are not silent? How are they not silent? What do they display? Specifically, I've always used the following and it's always both successful and silent.

ExecWait '"$INSTDIR\vcredist_sp1_x86.exe" /q /l $INSTDIR\vcredist.log'

Thanks kichik! It would displays EULA and all screens for installation.

I was able to do silent install by adding $EXEDIR in front of the path.

ExecWait '"$EXEDIR\Products\Microsoft Redistribute\vcredist_sp1_x86.exe" /q' $ExitCode5