Inno Setup:将桌面图标复选框的默认值设置为 true
我正在努力让 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
默认情况下会选中它们,删除
Flags: unchecked
。They are checked by default, remove the
Flags: unchecked
.启动时,安装程序将在注册表中查找是否已安装相同的应用程序,如果已安装,它将使用先前安装的任务设置作为向导中向用户提供的默认设置。
要防止这种行为,请使用
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.