Old 14th May 2013, 02:53   #1
DanielRuby
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:
installer.exe /enable-component ComponentName
?
DanielRuby is offline   Reply With Quote
Old 14th May 2013, 08:58   #2
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 562
Send a message via ICQ to T.Slappy
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
T.Slappy is offline   Reply With Quote
Old 14th May 2013, 09:07   #3
DanielRuby
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).
DanielRuby is offline   Reply With Quote
Old 26th July 2013, 14:50   #4
jiake
Senior Member
 
jiake's Avatar
 
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
jiake is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
component

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump