made an optional define CLASSIC_UI for disabling modern ui completely =)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1074 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
60a5369683
commit
4e085ba9c5
1 changed files with 14 additions and 0 deletions
|
@ -4,7 +4,9 @@
|
||||||
|
|
||||||
!verbose 3
|
!verbose 3
|
||||||
!include "${NSISDIR}\Examples\WinMessages.nsh"
|
!include "${NSISDIR}\Examples\WinMessages.nsh"
|
||||||
|
!ifndef CLASSIC_UI
|
||||||
!include "${NSISDIR}\Examples\Modern UI\ModernUI.nsh"
|
!include "${NSISDIR}\Examples\Modern UI\ModernUI.nsh"
|
||||||
|
!endif
|
||||||
!verbose 4
|
!verbose 4
|
||||||
|
|
||||||
!define CURRENTPAGE $9
|
!define CURRENTPAGE $9
|
||||||
|
@ -17,7 +19,9 @@ Caption "Nullsoft Install System - Setup"
|
||||||
OutFile ..\nsis${VER_MAJOR}${VER_MINOR}.exe
|
OutFile ..\nsis${VER_MAJOR}${VER_MINOR}.exe
|
||||||
SetCompressor bzip2
|
SetCompressor bzip2
|
||||||
|
|
||||||
|
!ifndef CLASSIC_UI
|
||||||
!insertmacro MUI_INTERFACE "modern2.exe" "adni18-installer-C-no48xp.ico" "adni18-uninstall-C-no48xp.ico" "modern.bmp" "smooth"
|
!insertmacro MUI_INTERFACE "modern2.exe" "adni18-installer-C-no48xp.ico" "adni18-uninstall-C-no48xp.ico" "modern.bmp" "smooth"
|
||||||
|
!endif
|
||||||
|
|
||||||
LicenseText "Scroll down to see the rest of the agreement."
|
LicenseText "Scroll down to see the rest of the agreement."
|
||||||
LicenseData ..\license.txt
|
LicenseData ..\license.txt
|
||||||
|
@ -366,7 +370,9 @@ Section -post
|
||||||
nofunshit:
|
nofunshit:
|
||||||
Delete $INSTDIR\uninst-nsis.exe
|
Delete $INSTDIR\uninst-nsis.exe
|
||||||
WriteUninstaller $INSTDIR\uninst-nsis.exe
|
WriteUninstaller $INSTDIR\uninst-nsis.exe
|
||||||
|
!ifndef CLASSIC_UI
|
||||||
!insertmacro MUI_FINISHHEADER SetPage
|
!insertmacro MUI_FINISHHEADER SetPage
|
||||||
|
!endif
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Function .onInstSuccess
|
Function .onInstSuccess
|
||||||
|
@ -375,6 +381,7 @@ Function .onInstSuccess
|
||||||
NoReadme:
|
NoReadme:
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
|
!ifndef CLASSIC_UI
|
||||||
Function .onInitDialog
|
Function .onInitDialog
|
||||||
|
|
||||||
!insertmacro MUI_INNERDIALOG_INIT
|
!insertmacro MUI_INNERDIALOG_INIT
|
||||||
|
@ -472,6 +479,7 @@ Function .onMouseOverSection
|
||||||
!insertmacro MUI_DESCRIPTION_END
|
!insertmacro MUI_DESCRIPTION_END
|
||||||
|
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
!endif
|
||||||
|
|
||||||
UninstallText "This will uninstall NSIS from your system:"
|
UninstallText "This will uninstall NSIS from your system:"
|
||||||
|
|
||||||
|
@ -571,9 +579,14 @@ Section Uninstall
|
||||||
IfFileExists $INSTDIR 0 Removed
|
IfFileExists $INSTDIR 0 Removed
|
||||||
MessageBox MB_OK|MB_ICONEXCLAMATION "Note: $INSTDIR could not be removed."
|
MessageBox MB_OK|MB_ICONEXCLAMATION "Note: $INSTDIR could not be removed."
|
||||||
Removed:
|
Removed:
|
||||||
|
!ifndef CLASSIC_UI
|
||||||
!insertmacro MUI_FINISHHEADER un.SetPage
|
!insertmacro MUI_FINISHHEADER un.SetPage
|
||||||
|
!endif
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
|
||||||
|
!ifndef CLASSIC_UI
|
||||||
|
|
||||||
Function un.onNextPage
|
Function un.onNextPage
|
||||||
|
|
||||||
!insertmacro MUI_NEXTPAGE_OUTER
|
!insertmacro MUI_NEXTPAGE_OUTER
|
||||||
|
@ -600,3 +613,4 @@ Function un.SetPage
|
||||||
!insertmacro MUI_PAGE_END
|
!insertmacro MUI_PAGE_END
|
||||||
|
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
!endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue