Old 23rd January 2007, 04:18   #1
Sawan
Junior Member
 
Join Date: Jan 2007
Posts: 6
Hide install options while selecting 'Typical'

Hi All,

I am using following code...

Quote:
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
Sawan is offline   Reply With Quote
Old 23rd January 2007, 04:44   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
code:
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


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
Red Wine is offline   Reply With Quote
Old 23rd January 2007, 04:54   #3
Sawan
Junior Member
 
Join Date: Jan 2007
Posts: 6
Smile

THANKS...Red Wine for your help

This was the code which I was exactly looking for...
Sawan is offline   Reply With Quote
Reply
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