如何在 NSIS 脚本中强制使用 SectionGroup
在 NSIS MUI 脚本中,可以通过将“SectionIn RO”添加到该部分来强制该部分。我想指出整个SectionGroup 是强制性的。我知道我可以将每个单独的组件设为强制,这使得该组默认为强制,但“SectionGroup”复选框仍处于启用状态,表明用户可以将其关闭。这可能会令人困惑。
对于SectionGroups,是否有相当于“SectionIn RO”的功能,从而强制禁用该组的复选框?
In an NSIS MUI script it is possible to make a section compulsory by adding "SectionIn RO" to the section. I would like to specify that the entire SectionGroup is compulsory. I know I can make each of the individual components compulsory which makes the group compulsory by default, but the SectionGroup checkbox is still enabled indicating that the user can turn it off. This could be confusing.
Is there an equivilent to "SectionIn RO" for SectionGroups and thus force the group's checkbox to be disabled?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想说这是一个 NSIS 错误。 (如果您决定在项目跟踪器上报告此问题,您可以参考 这个错误,它应该作为该错误的一部分被修复)
强制只读标志似乎有效:
I would say this is a NSIS bug. (If you decide to report this on the project tracker, you can reference this bug, it should have been fixed as part of that bug)
Forcing the readonly flag seems to work: