inno-setup – 如何在Inno Setup中静默安装Microsoft VC可再发行
发布时间:2020-12-15 04:03:57 所属栏目:大数据 来源:网络整理
导读:如何在Inno Setup中静默安装Microsoft VC可再发行组件?我使用了以下代码,除安装进度窗口外,大多数安装部分都是静默的. 这是我的[运行]部分的代码: – [Run]Filename: "{app}binvcredist_x86.exe"; Parameters: "/passive /verysilent /norestart /q:a
如何在Inno Setup中静默安装Microsoft VC可再发行组件?我使用了以下代码,除安装进度窗口外,大多数安装部分都是静默的.
这是我的[运行]部分的代码: – [Run] Filename: "{app}binvcredist_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... 解决方法
您可以将其添加到安装脚本:
[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..." 请注意,如果您使用的是与2008不同的可再发行版本,则运行参数会稍有变化. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |