Inno Setup:将桌面图标复选框的默认值设置为 true

发布于 2024-08-28 04:53:10 字数 299 浏览 4 评论 0原文

我正在努力让 Inno Setup 将是否应创建桌面图标的复选框设置为 true。该文档对于这个问题以及 Googlism 和 Stackoverflow 没有任何帮助。

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

我的想法是“Flags”的“checked”值,但文档告诉我,Flags 对此不负有责任。

I am struggling with getting Inno Setup to set the check box to true whether a desktop icon should be created. The documentation has not been any helpful concerning this issue as well as Googlism and Stackoverflow.

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

My thought was a value like "checked" for "Flags" but the documentation told me, that Flags isn't responsible for this.

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

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

发布评论

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

评论(2

洛阳烟雨空心柳 2024-09-04 04:53:10

默认情况下会选中它们,删除Flags: unchecked

They are checked by default, remove the Flags: unchecked.

少跟Wǒ拽 2024-09-04 04:53:10

启动时,安装程​​序将在注册表中查找是否已安装相同的应用程序,如果已安装,它将使用先前安装的任务设置作为向导中向用户提供的默认设置。

要防止这种行为,请使用 UsePreviousTasks=no

记录于此处。

At startup Setup will look in the registry to see if the same application is already installed, and if so, it will use the task settings of the previous installation as the default settings presented to the user in the wizard.

To prevent that behavior use UsePreviousTasks=no.

Documented here.

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