DanielRuby
14th May 2013 03:53 UTC
Enable Component by Command Line
I'm using a pre-existing installer to install requirements from the command line (in silent mode), but a component that I need is disabled (unchecked) by default. Is there a command line option to enable the component?
Something like
installer.exe /enable-component ComponentName
?
T.Slappy
14th May 2013 09:58 UTC
There is no parameter for this.
A quick hack could be to send some API message (BM_SETCHECK or simple click command) but this can be a problem in silent mode.
I think you are using third party installer and you do not have sources for it, do you?
DanielRuby
14th May 2013 10:07 UTC
Yea, I don't have the sources for it :|
The installer in question is the ruby one-click installer (a *very* old version, however)
The *current* sources are available at https://github.com/oneclick/rubyinstaller/, but as far as I can tell the version I need (has to work with other software) predates that repo (and they have since moved to inno setup).
jiake
26th July 2013 15:50 UTC
1. Using ${GetParameters} & ${GetOptions}, see NSIS manual.
2. Using SectionGetFlags & SectionSetFlags in Function .onInit.