简体   繁体   中英

how to dynamically insert custom pages in nsis installer

I have installer_type variable which will have either desktop or server as its value.

If the value is server then page1 should get inserted in the installer and page2 should be hidden for this installer and vice versa.

StrCmp installer_type "server" 0 +3
Page custom page1 page1Leave
Goto Done
Page custom page2 page2Leave
Done: 

Please let me know how to achieve this in .nsi file

页面数在编译时是固定的,但是您可以在页面预回调函数中调用Abort指令以跳过页面

just insert when you want see it

http://nsis.sourceforge.net/Docs/Chapter2.html#2.3.2

example

if you want to see directory then license:

Page directory
Page license

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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