Inno setup 要求用户在安装完成后重新启动系统,以使系统应用 HKLM 中的更改

发布于 2024-09-24 05:51:42 字数 141 浏览 3 评论 0原文

我使用最新的 inno setup 5.3 来打包我的 vb.net 应用程序。我在安装Windows系统时设置环境变量。它需要重新启动系统才能实施环境变量中所做的更改。我如何提示用户重新启动系统以实施更改(如许多应用程序中所做的那样)。有没有示例ISS代码可供参考。

Im using inno setup 5.3 latest to package my vb.net application. Im setting Environment variables during installation to the windows system. It needs a reboot of the system to implement the changes made in the Environment variables. How do i prompt the user to reboot the system so as to implement changes ( as done in many applications). Is there any sample iss code for reference.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

左岸枫 2024-10-01 05:51:42

您可以使用[Setup]:AlwaysRestart设置。

[Setup]
AlwaysRestart = yes    

或者,您可以使用 ChangesEnvironment 设置="http://www.jrsoftware.org/ishelp/topic_setupsection.htm" rel="noreferrer">[Setup] 部分可能更适合您的情况。优点是用户不需要重新启动系统。

[设置]:更改环境
当设置为 yes 时,在末尾
安装安装程序将通知其他
运行应用程序(特别是 Windows
Explorer)他们应该重新加载
他们的环境变量来自
注册表。

You may use the [Setup]: AlwaysRestart setting.

[Setup]
AlwaysRestart = yes    

Alternativly you could use the ChangesEnvironment setting in the [Setup] section which may be more adequate in your case. The advantage is, that the user doesn't need to restart the system.

[Setup]: ChangesEnvironment
When set to yes, at the end of the
installation Setup will notify other
running applications (notably Windows
Explorer) that they should reload
their environment variables from the
registry.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文