1

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

Francisco R
  • 4,032
  • 1
  • 22
  • 37
user1234
  • 289
  • 6
  • 13

2 Answers2

1

The number of pages is fixed at compile time, but you can call the Abort instruction in the page pre callback function to skip the page.

Anders
  • 97,548
  • 12
  • 110
  • 164
0

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
Joe DF
  • 5,438
  • 6
  • 41
  • 63