From 77b371896a1ae4927e7ba966136daca6ec553b9a Mon Sep 17 00:00:00 2001 From: icemank Date: Tue, 25 Nov 2003 21:07:51 +0000 Subject: [PATCH] Added context menu method for choosing compressor. git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3212 212acab6-be3b-0410-9dea-997c60f758d6 --- Examples/makensis.nsi | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/Examples/makensis.nsi b/Examples/makensis.nsi index 464aae46..aa4de8b0 100644 --- a/Examples/makensis.nsi +++ b/Examples/makensis.nsi @@ -187,23 +187,25 @@ Section "NSI Development Shell Extensions" SecExtention WriteRegStr HKCR ".nsh" "" "NSHFile" ReadRegStr $0 HKCR "NSHFile" "" StrCmp $0 "" 0 skipNSHAssoc - WriteRegStr HKCR "NSHFile" "" "NSIS Header File" - WriteRegStr HKCR "NSHFile\shell" "" "open" - WriteRegStr HKCR "NSHFile\DefaultIcon" "" $INSTDIR\makensisw.exe,1 + WriteRegStr HKCR "NSHFile" "" "NSIS Header File" + WriteRegStr HKCR "NSHFile\shell" "" "open" + WriteRegStr HKCR "NSHFile\DefaultIcon" "" $INSTDIR\makensisw.exe,1 skipNSHAssoc: WriteRegStr HKCR "NSHFile\shell\open\command" "" 'notepad.exe "%1"' WriteRegStr HKCR ".nsi" "" "NSISFile" ReadRegStr $0 HKCR "NSISFile" "" StrCmp $0 "" 0 skipNSIAssoc - WriteRegStr HKCR "NSISFile" "" "NSIS Script File" - WriteRegStr HKCR "NSISFile\shell" "" "open" - WriteRegStr HKCR "NSISFile\DefaultIcon" "" $INSTDIR\makensisw.exe,1 + WriteRegStr HKCR "NSISFile" "" "NSIS Script File" + WriteRegStr HKCR "NSISFile\shell" "" "open" + WriteRegStr HKCR "NSISFile\DefaultIcon" "" $INSTDIR\makensisw.exe,1 skipNSIAssoc: WriteRegStr HKCR "NSISFile\shell\open\command" "" 'notepad.exe "%1"' WriteRegStr HKCR "NSISFile\shell\compile" "" "Compile NSI" WriteRegStr HKCR "NSISFile\shell\compile\command" "" '"$INSTDIR\makensisw.exe" "%1"' WriteRegStr HKCR "NSISFile\shell\compile-bz2" "" "Compile NSI (with bz2)" WriteRegStr HKCR "NSISFile\shell\compile-bz2\command" "" '"$INSTDIR\makensisw.exe" /X"SetCompressor bzip2" "%1"' + WriteRegStr HKCR "NSISFile\shell\compile-choose compressor" "" "Compile NSI (Choose Compressor)" + WriteRegStr HKCR "NSISFile\shell\compile-choose compressor\command" "" '"$INSTDIR\makensisw.exe" /ChooseCompressor "%1"' SectionEnd !ifndef NO_STARTMENUSHORTCUTS @@ -288,7 +290,7 @@ SubSection "Extra User Interfaces" SecContribUIs SetOutPath $INSTDIR\Include File "..\Include\MUI.nsh" - + SectionEnd Section "Default User Interface" SecContribDefaultUI @@ -346,8 +348,8 @@ Section "Language files" SecContribLang SectionGetFlags ${SecContribModernUI} $R0 IntOp $R0 $R0 & ${SF_SELECTED} - IntCmp $R0 ${SF_SELECTED} 0 nomui nomui - SetOutPath "$INSTDIR\Contrib\Modern UI\Language files" + IntCmp $R0 ${SF_SELECTED} 0 nomui nomui + SetOutPath "$INSTDIR\Contrib\Modern UI\Language files" File "..\Contrib\Modern UI\Language files\*.nsh" nomui: @@ -912,7 +914,7 @@ Section -post SectionGetFlags ${SecContribModernUI} $R0 IntOp $R0 $R0 & ${SF_SELECTED} - IntCmp $R0 ${SF_SELECTED} "" nomui nomui + IntCmp $R0 ${SF_SELECTED} "" nomui nomui SetDetailsPrint textonly DetailPrint "Configurating Modern UI..." @@ -922,8 +924,8 @@ Section -post SectionGetFlags ${SecContribLang} $R0 IntOp $R0 $R0 & ${SF_SELECTED} IntCmp $R0 ${SF_SELECTED} langfiles - - SetOutPath "$INSTDIR\Contrib\Modern UI\Language files" + + SetOutPath "$INSTDIR\Contrib\Modern UI\Language files" File "..\Contrib\Modern UI\Language files\English.nsh" langfiles: