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

前端 未结 4 1633
灰色年华
灰色年华 2020-12-03 05:28

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 wi

4条回答
  •  一生所求
    2020-12-03 06:19

    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.

提交回复
热议问题