anotherim-desktop/windows-installer/dino.nsi

69 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

Unicode True
RequestExecutionLevel user
SetCompressor /SOLID lzma
!define MUI_PRODUCT "Dino"
!define MUI_PRODUCT_NAME ${MUI_PRODUCT}
2020-05-05 17:17:45 +00:00
!define MUI_BRANDINGTEXT ${MUI_PRODUCT}
!define PRODUCT_WEBSITE "https://dino.im"
!define MUI_ICON "win64-dist/dino.ico"
!define ICON "win64-dist/dino.ico"
!define MUI_COMPONENTSPAGE_NODESC
2020-05-05 17:17:45 +00:00
# Modern Interface
!include "MUI2.nsh"
!insertmacro MUI_PAGE_LICENSE "LICENSE_SHORT"
2020-05-05 17:17:45 +00:00
!insertmacro MUI_PAGE_INSTFILES
2020-06-28 05:13:52 +00:00
!include "english.nsh"
2020-05-05 17:17:45 +00:00
Name ${MUI_PRODUCT}
BrandingText "Communicating happiness"
# define installer name
OutFile "dino-installer.exe"
# set install directory
InstallDir $APPDATA\Dino
2020-06-28 05:13:52 +00:00
Section
# Install all files
SetOutPath $INSTDIR
File /r win64-dist\*.*
# define uninstaller name
WriteUninstaller $INSTDIR\uninstaller.exe
# Create a shortcut for startmenu
CreateDirectory "$SMPROGRAMS\Dino"
CreateShortcut "$SMPROGRAMS\Dino\Dino.lnk" "$INSTDIR\bin\dino.exe" "" "$INSTDIR\dino.ico"
CreateShortcut "$SMPROGRAMS\Dino\Uninstaller.lnk" "$INSTDIR\uninstaller.exe"
CreateShortcut "$SMPROGRAMS\Dino\License.lnk" "notepad.exe" "$INSTDIR\LICENSE"
CreateShortcut "$SMPROGRAMS\Dino\Dino website.lnk" "https://dino.im" "" "$INSTDIR\dino.ico"
# Create a shortcut for desktop
CreateShortCut "$DESKTOP\Dino.lnk" "$INSTDIR\bin\dino.exe" "" "$INSTDIR\dino.ico"
2020-10-29 12:47:26 +00:00
# set application ID
# No "ApplicationID" plugin for NSIS MINGW64
# ApplicationID::Set "$SMPROGRAMS\Dino\Dino.lnk" "Dino" "true"
2020-10-29 12:47:26 +00:00
SectionEnd
# Uninstaller section
Section "Uninstall"
# Delete startmenu folder
RMDir /r "$SMPROGRAMS\Dino"
# Always delete uninstaller first
Delete $INSTDIR\uninstaller.exe
# now delete installed file
Delete $INSTDIR\*
# Delete the directory
RMDir /r $INSTDIR
SectionEnd