Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 22nd January 2007, 10:39   #1
Sawan
Junior Member
 
Join Date: Jan 2007
Posts: 6
Manage sections dynamically

Hi All,

I am using following code...

code:
Name InstTest
OutFile 'InstTest.exe'

InstType "Typical"

!include MUI.nsh

!insertmacro MUI_PAGE_LICENSE '${NSISDIR}\license.txt'
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_LANGUAGE "English"

Section "Install Java SDK" SEC_1
SectionIn 1 RO
;;;;;;;;;;;;;;
SectionEnd

Section "Install MySQL database server" SEC_2
SectionIn 1 RO
;;;;;;;;;;;;;;
SectionEnd

Section "My Client" SEC_3
SectionIn 1 RO
;;;;;;;;;;;;;;
SectionEnd

Section "-My Server" SEC_4
;;;;;;;;;;;;;;
SectionEnd



Now on run time if user selects 'Typical' then my requirement is to make RO (Read only) first 3 Sections and hide fourth one and if user selects 'Custom' then remove RO (Read only) from first three sections and unhide fourth one.

How it can be done...? Plz send me the solution with code..

Thanks and regards
Sawan is offline   Reply With Quote
Reply
Go Back   Winamp 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