Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 22nd April 2009, 20:49   #1
WhiteOwl
Junior Member
 
Join Date: Feb 2009
Posts: 4
How to forbid installation of shared data if no optional sections was selected?

I have two applications which should be distributed together, but end-user can wish only one of them (or both at the same time). Both applications use the same set of additional files and registry keys (shared data).

So I did something like that:
code:
page components
Section "- shared"
SetOutPath $instdir\data
SectionEnd
Section "Client A"
SetOutPath $instdir\ClientA
SectionEnd
Section "Client B"
SetOutPath $instdir\ClientB
SectionEnd


Data from section "- shared" should be installed for both clients, but if user uncheck both clients on components page, NSIS still will install "- shared" section.
How to forbid it? Or how to force user to check at least one of the clients?
WhiteOwl is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

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