How to install Microsoft VC++ redistributables silently in Inno Setup?

inno-setup

Solution

You can add those to the setup script:

[Files]
Source: "vcredist_x86.exe"; DestDir: {tmp}; Flags: deleteafterinstall

[Run]
Filename: {tmp}\vcredist_x86.exe; \
    Parameters: "/q /passive /Q:a /c:""msiexec /q /i vcredist.msi"""; \
    StatusMsg: "Installing VC++ 2008 Redistributables..."

Note that the run parameters will change slightly, if you are using a different redistributable version from 2008.

Problem

How to install Microsoft VC++ redistributables silently in Inno Setup? I used the following code, most of the installation part is silent except the installation progress window. Here is my `[Run]` section's code:- ``` [Run] Filename: "{app}\bin\vcredist_x86.exe"; \ Parameters: "/passive /verysilent /norestart /q:a /c:""VCREDI~3.EXE /q:a /c:""""msiexec /i vcredist.msi /qn"""" """; \ Check: VCRedistNeedsInstall; WorkingDir: {app}\bin;Flags: runminimized nowait; \ StatusMsg: Installing CRT... ```

Original source

Related problems