简体   繁体   English

带有HM NSIS编辑器的NSIS中可选部分的小问题

[英]small problem with optional section in NSIS with HM NSIS editor

I have simple little problem: 我有一个简单的小问题:

According to the docs here I should have a optional section which should allow the user to check it off right? 根据这里文档,我应该有一个可选部分,该部分应允许用户对其进行检查?

I have a section like this: 我有一个这样的部分:

Section "SayHello"
 DetailPrint "blah blah"
 MessageBox MB_OK "hello"
SectionEnd

I've tried all sorts of combinations and tweaks but it never shows up an as optional check, the message box just executes every time no matter what. 我已经尝试了各种组合和调整,但是它从未显示为可选检查,无论何时,消息框都会每次执行。 Except of course if I add an /o it just does throw the message box at all, but no option to check it on/off. 当然,如果我添加一个/o它只会抛出该消息框,但是没有任何选项可以打开/关闭它。

Its just eating me a little and I cannot seem to figure what is wrong? 它只是吃了我一点,我似乎无法弄清楚什么是错的?

Also, are sections executed in the order they are defined? 另外,是否按定义的顺序执行

Note: My whole code, is generated by HM NIS editor I just ran the wizard for a basic installer and saved the script, then, I added this section. 注意:我的整个代码是由HM NIS编辑器生成的,我只运行了基本安装程序的向导并保存了脚本,然后添加了本节。 It also used Modern UI . 它还使用了Modern UI

Thanks 谢谢

If you want the ability to toggle sections, you need to insert a components page before the instfiles page. 如果要切换部分,则需要在instfiles页面之前插入一个组件页面。

Yes, sections execute in the order they are defined in the script. 是的,各节将按照脚本中定义的顺序执行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM