Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Enable Component by Command Line (http://forums.winamp.com/showthread.php?t=361307)

DanielRuby 14th May 2013 02:53

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
?

T.Slappy 14th May 2013 08:58

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 09:07

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 14:50

1. Using ${GetParameters} & ${GetOptions}, see NSIS manual.
2. Using SectionGetFlags & SectionSetFlags in Function .onInit.


All times are GMT. The time now is 17:20.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.