Use modern user interface and locked list also for uninstalling
This commit is contained in:
parent
43dc694963
commit
2a8490ef31
|
@ -70,7 +70,6 @@ Unicode True
|
||||||
|
|
||||||
SetCompressor /SOLID lzma
|
SetCompressor /SOLID lzma
|
||||||
|
|
||||||
!addplugindir nsisplugins
|
|
||||||
!include "MUI2.nsh"
|
!include "MUI2.nsh"
|
||||||
!include "FileAssociation.nsh"
|
!include "FileAssociation.nsh"
|
||||||
!include "Capabilities.nsh"
|
!include "Capabilities.nsh"
|
||||||
|
@ -85,6 +84,20 @@ ReserveFile "${NSISDIR}/Plugins/x86-unicode/LockedList.dll"
|
||||||
ReserveFile "${NSISDIR}/Plugins/LockedList64.dll"
|
ReserveFile "${NSISDIR}/Plugins/LockedList64.dll"
|
||||||
!define LockedListPATH $InstallDir
|
!define LockedListPATH $InstallDir
|
||||||
|
|
||||||
|
; Installer pages
|
||||||
|
!insertmacro MUI_PAGE_WELCOME
|
||||||
|
!insertmacro MUI_PAGE_LICENSE COPYING
|
||||||
|
Page Custom LockedListPageShow
|
||||||
|
!insertmacro MUI_PAGE_DIRECTORY
|
||||||
|
!insertmacro MUI_PAGE_INSTFILES
|
||||||
|
!insertmacro MUI_PAGE_FINISH
|
||||||
|
|
||||||
|
; Uninstaller pages
|
||||||
|
!insertmacro MUI_UNPAGE_CONFIRM
|
||||||
|
UninstPage custom un.LockedListPageShow
|
||||||
|
!insertmacro MUI_UNPAGE_INSTFILES
|
||||||
|
!insertmacro MUI_UNPAGE_FINISH
|
||||||
|
|
||||||
!insertmacro MUI_LANGUAGE "English" ;first language is the default language
|
!insertmacro MUI_LANGUAGE "English" ;first language is the default language
|
||||||
|
|
||||||
Name "${PRODUCT_NAME}"
|
Name "${PRODUCT_NAME}"
|
||||||
|
@ -125,23 +138,20 @@ InstallDir "${PRODUCT_INSTALL_DIR}"
|
||||||
; Get the path where Strawberry was installed previously and set it as default path
|
; Get the path where Strawberry was installed previously and set it as default path
|
||||||
InstallDirRegKey ${PRODUCT_UNINST_ROOT_KEY} ${PRODUCT_UNINST_KEY} "UninstallString"
|
InstallDirRegKey ${PRODUCT_UNINST_ROOT_KEY} ${PRODUCT_UNINST_KEY} "UninstallString"
|
||||||
|
|
||||||
LicenseData "COPYING"
|
|
||||||
|
|
||||||
ShowInstDetails show
|
ShowInstDetails show
|
||||||
ShowUnInstDetails show
|
ShowUnInstDetails show
|
||||||
RequestExecutionLevel admin
|
RequestExecutionLevel admin
|
||||||
;RequestExecutionLevel user
|
|
||||||
|
|
||||||
Page license
|
|
||||||
Page directory
|
|
||||||
Page Custom LockedListPageShow
|
|
||||||
Page instfiles
|
|
||||||
|
|
||||||
Function LockedListPageShow
|
Function LockedListPageShow
|
||||||
LockedList::AddModule /NOUNLOAD \strawberry.exe
|
LockedList::AddModule /NOUNLOAD \strawberry.exe
|
||||||
LockedList::Dialog /heading "Checking for running programs:" /noprograms "No programs need to close." /searching "Searching for running programs..."
|
LockedList::Dialog /heading "Checking for running programs:" /noprograms "No programs need to close." /searching "Searching for running programs..."
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
|
Function un.LockedListPageShow
|
||||||
|
LockedList::AddModule /NOUNLOAD \strawberry.exe
|
||||||
|
LockedList::Dialog /heading "Checking for running programs:" /noprograms "No programs need to close." /searching "Searching for running programs..."
|
||||||
|
FunctionEnd
|
||||||
|
|
||||||
; Check for previous installation, and call the uninstaller if any
|
; Check for previous installation, and call the uninstaller if any
|
||||||
Function CheckPreviousInstall
|
Function CheckPreviousInstall
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue