|
|
#1 |
|
Junior Member
Join Date: Jul 2005
Posts: 14
|
Easy one for you Pros
Ok I have been searching but it is getting late, and I have not been able to adapt the examples and get them to work.
Here is what i need. I have 2 programs that do the same thing. The Ethernet version has 1 exe file we will call "A". The serial version needs 2 exe files we will cal "B" & "C". However "B" and "C" are both requires fr the second version they can be installed on two seperate computers. I need to allow the following 4 options. Install "A" only Install "B" only Install "C" only or Install "B" and "C" only |
|
|
|
|
|
#2 |
|
Major Dude
|
see Sections.nsh
hand by comm@nder21 ---------- WiKi pages:CreateInternetShortcut|Enhanced FindWindow|Parse CSV-Data|Open/Close CD-Drive|Installer without Icon|Vista application compatibility |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jul 2005
Posts: 14
|
OK this is what I have and where I am stumped.
code: So the problem is if the user selects the serial connection and then changes to select the Ethernet version, one of the serial components stay selected. So the only allowable options should be Sec1 or Sec2(Sec3+Sec4) or Sec3 or Sec4. The second problem I noticed is if you de-select one of the Serial subgroups and try to reselect it, it basically flip flops. The only way to reselect it is to select the ethernet version and then select the serial version again. Any and all help is greatly appreciated. |
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
You shouldn't put Sec2 in the radio buttons list because it's a section group.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jul 2005
Posts: 14
|
OK, but that does not make any change in the behavior of the buttons.
|
|
|
|
|
|
#6 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
RadioButtons will not work here. You'll need some custom code to do it. I'll make some for you later today when I get back from January shopping
![]() Sorry I haven't replied to your Private Messages either. It was my 18th birthday on Friday and I tend to stay away from the computer on and around my birthdays ![]() -Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jul 2005
Posts: 14
|
Hey no problem. I appreciate the help, Happy 18th! Do you get to enjoy spirits at that age in England?
If so, Congrats and I would be jealous if I was 18 again! |
|
|
|
|
|
#8 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Yep you can legally drink at 18 here in the UK!
Try this compilable script: code: -Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Jul 2005
Posts: 14
|
Man, You rock! Where can I make a donation?
|
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Jul 2005
Posts: 14
|
Can I bother you for another need. I would be happy to compensate you...
I need the ability if the choose the Sec2 I need to record an option in the registry. WriteRegStr HKLM SOFTWARE\program "ComPort" "comx" However I need them to specify which com port they are using. and then modify the "comx" to linke "com5" |
|
|
|
|
|
#11 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Uhm, that won't be necessary but if you're offering I don't mind
Paypal: bikube at tiscali.co.ukFor getting user input you can use my PassDialog plugin which has a basic dialog with a single input box. Something like this: code: You need the StrCSpnReverse function for this code too.You can download my PassDialog plugin from: http://nsis.sf.net/File:PassDialog.zip -Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#12 |
|
Junior Member
Join Date: Jul 2005
Posts: 14
|
SO how do I make it so this only works when the server (Sec2) is selected.
Otherwise it looks good. |
|
|
|
|
|
#13 |
|
Junior Member
Join Date: Jul 2005
Posts: 14
|
Also got this warning:
LangString "BAD_PORT_NUM" is not set in language table of language English |
|
|
|
|
|
#14 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Oops sorry, LangString parameters order was incorrect. Should be:
LangString BAD_PORT_NUM ${LANG_ENGLISH} "Please enter a valid port number!" To only show the dialog if Sec2 is selected, simply jump over the plugin call: code: -Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#15 |
|
Junior Member
Join Date: Jul 2005
Posts: 14
|
Thanks
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|