Sawan
23rd January 2007 05:18 UTC
Hide install options while selecting 'Typical'
Hi All,
I am using following code...
OutFile 'InstTest.exe'
InstType "Typical"
!include MUI.nsh
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_LANGUAGE "English"
Section "-Install Java SDK" SEC_1
SectionIn 1
;;;;;;;;;;;;;;
SectionEnd
Section "-Install MySQL database server" SEC_2
SectionIn 1
;;;;;;;;;;;;;;
SectionEnd
Section "-My Client" SEC_3
SectionIn 1
;;;;;;;;;;;;;;
SectionEnd
Section "-My Server" SEC_4
;;;;;;;;;;;;;;
SectionEnd
Now I want to UNHIDE all the sections while selecting 'Custom' and if user selects 'Typical 'again I need to hide all the options...
How it can be done...?
Thanks and regards
Sawan
Red Wine
23rd January 2007 05:44 UTC
Name InstTest
OutFile 'TestSections.exe'
ShowInstDetails show
InstType /COMPONENTSONLYONCUSTOM
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
DetailPrint "section 1"
SectionEnd
Section "Install MySQL database server" SEC_2
SectionIn 1
DetailPrint "section 2"
SectionEnd
Section "My Client" SEC_3
SectionIn 1
DetailPrint "section 3"
SectionEnd
Section "My Server" SEC_4
SectionIn 1
DetailPrint "section 4"
SectionEnd
Sawan
23rd January 2007 05:54 UTC
THANKS...Red Wine for your help
This was the code which I was exactly looking for...