12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- ;NSIS Modern User Interface
- ;Basic Example Script
- ;Written by Joost Verburg
- ;--------------------------------
- ;Include Modern UI
- !include "MUI2.nsh"
- ;--------------------------------
- ;General
- ;Name and file
- Name "Modern UI Test"
- OutFile "Basic.exe"
- ;Default installation folder
- InstallDir "$LOCALAPPDATA\Modern UI Test"
-
- ;Get installation folder from registry if available
- InstallDirRegKey HKCU "Software\Modern UI Test" ""
- ;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...
-
- ;Store installation folder
- WriteRegStr HKCU "Software\Modern UI Test" "" $INSTDIR
-
- ;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
|