WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > two Install Typs with Radio Button
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
acad_demo
Junior Member

Registered: Oct 2009
From:

two Install Typs with Radio Button

Hello,

I'm trying to get an InstallScript for a Programm witch have a Plugin Modus and an Standalone Mode.
I made an custom Page with to Radio Buttons.

I declaird 2 InstallTyps. But the Script run alway in trhe First InstallType.

But I want that the Radio Button 1 use the Section 1
and Radio Button 2 use the Section 2.

In the Function for the Radio Button I use the
!insertmacro SetSectionInInstType "${Section2}" "${InstType_2}"

But Just the Section1 is used.

What can I do?

Quick Link | Report this post to a moderator | IP: Logged

acad_demo is offline Old Post 10-07-2009 03:13 PM
Click Here to See the Profile for acad_demo Click here to Send acad_demo a Private Message Find more posts by acad_demo Add acad_demo to your buddy list Edit/Delete Message Reply w/Quote
MSG
Senior Member

Registered: Oct 2006
From:

Wouldn't it be easier to put the selected radio button in a variable, and then use only one section?

Section YourSection
${If} $RadioButtonVariable == "FirstButton"
; do stuff
${Else}
; do other stuff
${EndIf}
SectionEnd

Quick Link | Report this post to a moderator | IP: Logged

MSG is offline Old Post 10-07-2009 04:39 PM
Click Here to See the Profile for MSG Click here to Send MSG a Private Message Find more posts by MSG Add MSG to your buddy list Edit/Delete Message Reply w/Quote
acad_demo
Junior Member

Registered: Oct 2009
From:

Thanks a lot
sometimes the solution is just so simple.

Quick Link | Report this post to a moderator | IP: Logged

acad_demo is offline Old Post 10-08-2009 03:32 PM
Click Here to See the Profile for acad_demo Click here to Send acad_demo a Private Message Find more posts by acad_demo Add acad_demo to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 08:13 PM. Post New Thread    Post A Reply
  Last Thread   Next Thread
WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > two Install Typs with Radio Button
Show Printable Version
 | 
Email this Page
 | 
Subscribe to this Thread

Forum Jump:
 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is off
vB code is ON
Smilies are ON
[IMG] code is ON