Old 25th January 2007, 17:47   #1
PepaR
Junior Member
 
Join Date: Jan 2007
Posts: 12
Check section by rule

Could you give someone exaple how check section if I find some string in registry?
Eg. I have a lot of version program for which is make this setup. I recognize in registry that progam is install, but how automatic activate checbox with relevant section of files?

Thanks for reply
PepaR is offline   Reply With Quote
Old 25th January 2007, 18:19   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
code:
Name "My Application"
OutFile 'test.exe'
LicenseData '${NSISDIR}\License.txt'
InstallDir '$PROGRAMFILES\$(^name)'
ShowInstDetails show

Page License
Page Components comp_pre
Page Directory
Page InstFiles

Section "!Required Section" sec1
SetOutPath "$INSTDIR"
detailprint "Required Section: Always installed"
SectionEnd

section /o "Install NSIS Plugin" sec2
Setoutpath "$0"
detailprint "Section: Install NSIS Plugin"
sectionend

section /o "Install Dummy Plugin" sec3
Setoutpath "$1"
detailprint "Section: Install Dummy Plugin"
sectionend

function comp_pre
ReadRegStr $0 HKLM "Software\NSIS" ""
Iferrors 0 +3
sectionsettext ${sec2} ""
goto +2
sectionsetflags ${sec2} 1
clearerrors
ReadRegStr $1 HKLM "Software\Dummy" ""
Iferrors 0 +3
sectionsettext ${sec3} ""
goto +2
sectionsetflags ${sec3} 1
functionend


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
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