|
|
|
|
#1 |
|
Junior Member
Join Date: May 2013
Posts: 2
|
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 ?code: |
|
|
|
|
|
#2 |
|
Major Dude
|
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? Cool looking installers with custom design: www.graphical-installer.com Create Setup Pages easily: www.install-designer.com Build installers in Visual Studio 2005-2022: www.visual-installer.com or RAD Studio 2009 - 11 Alexandria: www.rad-installer.com |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2013
Posts: 2
|
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). |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
|
1. Using ${GetParameters} & ${GetOptions}, see NSIS manual.
2. Using SectionGetFlags & SectionSetFlags in Function .onInit. Contact me: 137729898@qq.com |
|
|
|
![]() |
|
|||||||
| Tags |
| component |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|