|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
|
#1 |
|
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: 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? |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
As always there are several ways to manage it. For instance one could be by checking the included example one-section.nsi or by using the .onSelChange callback to verify whether at least one optional section is selected. In case where both sections are unchecked you may disable the next button or popup a message warning.
Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|