英文:
VC++ Redist install passively without restart always restarting
问题
I'm trying to install VC++ Redist without any user input using the following code. I do not want system restart as well – so supplied /norestart
flag.
[Run]
Filename: "{tmp}\VC_redist.x64.exe"; \
Parameters: "/passive /Q:a /c:""msiexec /qb /norestart /i vcredist.msi"" "; \
StatusMsg: Installing VC++ RunTime...
But after the install, the setup tries to restart the machine automatically.
英文:
I'm trying to install VC++ Redist without any user input using the following code. I do not want system restart as well – so supplied /norestart
flag
[Run]
Filename: "{tmp}\VC_redist.x64.exe"; \
Parameters: "/passive /Q:a /c:""msiexec /qb /norestart /i vcredist.msi"" "; \
StatusMsg: Installing VC++ RunTime...
But after the install, the setup tries to restart the machine automatically
答案1
得分: 3
VC++ Redist可能计划在下次重新启动后替换一些文件。Inno Setup检测到这一点,并在完成后重新启动计算机。
您可以使用RestartIfNeededByRun
指令禁用Inno Setup检测此情况:
当设置为
yes
时,在[Run]
部分执行的程序排队要在下次重新启动时替换的文件(通过调用MoveFileEx
或修改wininit.ini),安装完成后,Setup将检测到此情况并提示用户在安装结束时重新启动计算机。
英文:
The VC++ Redist probably schedules some files to be replaced after next restart. Inno Setup detects that and restarts the computer after it finishes.
You can disable Inno Setup from detecting this using RestartIfNeededByRun
directive:
> When set to yes
, and a program executed in the [Run]
section queues files to be replaced on the next reboot (by calling MoveFileEx
or by modifying wininit.ini), Setup will detect this and prompt the user to restart the computer at the end of installation.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论