-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Shaji Khan
committed
Oct 24, 2024
1 parent
3fcaca3
commit 5cf68b6
Showing
1 changed file
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
;NSIS Modern User Interface | ||
;Basic Example Script | ||
;Written by Joost Verburg | ||
|
||
;-------------------------------- | ||
;Include Modern UI | ||
|
||
!include "MUI2.nsh" | ||
|
||
;-------------------------------- | ||
;General | ||
|
||
;Name and file | ||
Name "Amp Rack 5" | ||
OutFile "amprack-setup.exe" | ||
Unicode True | ||
|
||
;Default installation folder | ||
InstallDir "$LOCALAPPDATA\Amprack" | ||
|
||
;Request application privileges for Windows Vista | ||
RequestExecutionLevel user | ||
|
||
;-------------------------------- | ||
;Interface Settings | ||
|
||
!define MUI_ABORTWARNING | ||
|
||
;-------------------------------- | ||
;Pages | ||
|
||
!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Docs\Modern UI\License.txt" | ||
!insertmacro MUI_PAGE_COMPONENTS | ||
!insertmacro MUI_PAGE_DIRECTORY | ||
!insertmacro MUI_PAGE_INSTFILES | ||
|
||
!insertmacro MUI_UNPAGE_CONFIRM | ||
!insertmacro MUI_UNPAGE_INSTFILES | ||
|
||
;-------------------------------- | ||
;Languages | ||
|
||
!insertmacro MUI_LANGUAGE "English" | ||
|
||
;-------------------------------- | ||
;Installer Sections | ||
|
||
Section "Dummy Section" SecDummy | ||
|
||
SetOutPath "$INSTDIR" | ||
|
||
;ADD YOUR OWN FILES HERE... | ||
|
||
;Create uninstaller | ||
WriteUninstaller "$INSTDIR\Uninstall.exe" | ||
|
||
SectionEnd | ||
|
||
;-------------------------------- | ||
;Descriptions | ||
|
||
;Language strings | ||
LangString DESC_SecDummy ${LANG_ENGLISH} "A test section." | ||
|
||
;Assign language strings to sections | ||
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN | ||
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy) | ||
!insertmacro MUI_FUNCTION_DESCRIPTION_END | ||
|
||
;-------------------------------- | ||
;Uninstaller Section | ||
|
||
Section "Uninstall" | ||
|
||
;ADD YOUR OWN FILES HERE... | ||
|
||
Delete "$INSTDIR\Uninstall.exe" | ||
|
||
RMDir "$INSTDIR" | ||
|
||
DeleteRegKey /ifempty HKCU "Software\Modern UI Test" | ||
|
||
SectionEnd |