Skip to content
⌘ NSIS Forum Archive

installer command line usage

11 posts

nsislover#

installer command line usage

Hi,

I'm wondering about installer command line usage. How to check or uncheck any options in a installer by using command line? I know /S is for silent. /D is for install directory.

Thanks a lot,

nsislover
nsislover#
No one knows?

Is there any way I can specify an runtime input parameter?

Any input will be appreciated.
saschagottfried#
Better look at Appendix E.1 File Function Headers. These are more "built-in" than this example at chapter 4.12.

Look for ${GetParameters} and ${GetOptions}

!!!see E.1.1 Introduction for usage notes!!!
nsislover#
Thanks Filus and saschagottfried's reply.

However I found another issue. I have custom pages to setup some configuration. It seems when I run with command line, those custom page did not get hit. What's problem? How can I run command line to run my custom page?
Filus#
Do you mean that all other pages show normally and this one not? When you don't use command line is all ok?
Hmmm...
It's hard to guess without your example of command line call, and maybe some code.
nsislover#
Go to NSIS/Examples, try to run gfx.exe in command line.
gfx.exe /S

You will see the customPage did not get runned.
nsislover#
I don't expect the pages to display in silent mode. I just thought the page should be executed in silent mode.
Comperio#
As far as I know, when in silent mode, only the sections and few special callback functions (such as .onInit) get called. All other functions (including pages) get skipped.