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
|
||||
!include "${NSISDIR}\Examples\WinMessages.nsh"
|
||||
!ifndef CLASSIC_UI
|
||||
!include "${NSISDIR}\Examples\Modern UI\ModernUI.nsh"
|
||||
!endif
|
||||
!verbose 4
|
||||
|
||||
!define CURRENTPAGE $9
|
||||
|
@ -17,7 +19,9 @@ Caption "Nullsoft Install System - Setup"
|
|||
OutFile ..\nsis${VER_MAJOR}${VER_MINOR}.exe
|
||||
SetCompressor bzip2
|
||||
|
||||
!ifndef CLASSIC_UI
|
||||
!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."
|
||||
LicenseData ..\license.txt
|
||||
|
@ -366,7 +370,9 @@ Section -post
|
|||
nofunshit:
|
||||
Delete $INSTDIR\uninst-nsis.exe
|
||||
WriteUninstaller $INSTDIR\uninst-nsis.exe
|
||||
!ifndef CLASSIC_UI
|
||||
!insertmacro MUI_FINISHHEADER SetPage
|
||||
!endif
|
||||
SectionEnd
|
||||
|
||||
Function .onInstSuccess
|
||||
|
@ -375,6 +381,7 @@ Function .onInstSuccess
|
|||
NoReadme:
|
||||
FunctionEnd
|
||||
|
||||
!ifndef CLASSIC_UI
|
||||
Function .onInitDialog
|
||||
|
||||
!insertmacro MUI_INNERDIALOG_INIT
|
||||
|
@ -472,6 +479,7 @@ Function .onMouseOverSection
|
|||
!insertmacro MUI_DESCRIPTION_END
|
||||
|
||||
FunctionEnd
|
||||
!endif
|
||||
|
||||
UninstallText "This will uninstall NSIS from your system:"
|
||||
|
||||
|
@ -571,9 +579,14 @@ Section Uninstall
|
|||
IfFileExists $INSTDIR 0 Removed
|
||||
MessageBox MB_OK|MB_ICONEXCLAMATION "Note: $INSTDIR could not be removed."
|
||||
Removed:
|
||||
!ifndef CLASSIC_UI
|
||||
!insertmacro MUI_FINISHHEADER un.SetPage
|
||||
!endif
|
||||
SectionEnd
|
||||
|
||||
|
||||
!ifndef CLASSIC_UI
|
||||
|
||||
Function un.onNextPage
|
||||
|
||||
!insertmacro MUI_NEXTPAGE_OUTER
|
||||
|
@ -600,3 +613,4 @@ Function un.SetPage
|
|||
!insertmacro MUI_PAGE_END
|
||||
|
||||
FunctionEnd
|
||||
!endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue