2020-05-02 20:03:20 +00:00
|
|
|
Unicode True
|
|
|
|
|
2020-09-18 14:51:41 +00:00
|
|
|
SetCompressor /SOLID lzma
|
|
|
|
|
2020-05-02 20:03:20 +00:00
|
|
|
!define MUI_PRODUCT "Dino"
|
|
|
|
!define MUI_PRODUCT_NAME ${MUI_PRODUCT}
|
2020-05-05 17:17:45 +00:00
|
|
|
!define MUI_BRANDINGTEXT ${MUI_PRODUCT}
|
2020-05-02 20:03:20 +00:00
|
|
|
!define PRODUCT_WEBSITE "https://dino.im"
|
|
|
|
!define MUI_ICON "input/logo.ico"
|
|
|
|
!define ICON "input/logo.ico"
|
2020-06-28 07:00:03 +00:00
|
|
|
!define MUI_COMPONENTSPAGE_NODESC
|
|
|
|
|
2020-05-05 17:17:45 +00:00
|
|
|
# Modern Interface
|
|
|
|
!include "MUI2.nsh"
|
2020-06-28 07:00:03 +00:00
|
|
|
!insertmacro MUI_PAGE_LICENSE "input/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"
|
|
|
|
!include "german.nsh"
|
2020-05-05 17:17:45 +00:00
|
|
|
|
|
|
|
Name ${MUI_PRODUCT}
|
|
|
|
BrandingText "Communicating happiness"
|
|
|
|
|
2020-05-02 20:03:20 +00:00
|
|
|
# define installer name
|
|
|
|
OutFile "dino-installer.exe"
|
|
|
|
|
|
|
|
# set install directory
|
|
|
|
InstallDir $PROGRAMFILES64\dino
|
2020-06-28 05:13:52 +00:00
|
|
|
|
2020-06-28 07:00:03 +00:00
|
|
|
Section
|
|
|
|
|
2020-07-10 14:55:00 +00:00
|
|
|
# Install all files
|
2020-05-02 20:03:20 +00:00
|
|
|
SetOutPath $INSTDIR
|
2020-07-10 14:55:00 +00:00
|
|
|
File /r input/
|
2020-05-02 20:03:20 +00:00
|
|
|
|
|
|
|
# define uninstaller name
|
|
|
|
WriteUninstaller $INSTDIR\uninstaller.exe
|
|
|
|
|
|
|
|
# Create a shortcut for startmenu
|
2020-05-05 20:20:49 +00:00
|
|
|
CreateDirectory "$SMPROGRAMS\Dino"
|
|
|
|
CreateShortcut "$SMPROGRAMS\Dino\Dino.lnk" "$INSTDIR\bin\dino.exe" "" "$INSTDIR\logo.ico"
|
|
|
|
CreateShortcut "$SMPROGRAMS\Dino\Uninstaller.lnk" "$INSTDIR\uninstaller.exe"
|
|
|
|
CreateShortcut "$SMPROGRAMS\Dino\License.lnk" "$INSTDIR\LICENSE" "" "notepad.exe" 0
|
|
|
|
CreateShortcut "$SMPROGRAMS\Dino\Dino website.lnk" "https://dino.im" "" "$INSTDIR\logo.ico"
|
2020-05-02 20:03:20 +00:00
|
|
|
|
2020-10-29 12:47:26 +00:00
|
|
|
# set application ID
|
2020-11-06 13:12:50 +00:00
|
|
|
ApplicationID::Set "$SMPROGRAMS\Dino\Dino.lnk" "Dino" "true"
|
2020-10-29 12:47:26 +00:00
|
|
|
|
2020-06-28 07:00:03 +00:00
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
# Uninstaller section
|
2020-05-02 20:03:20 +00:00
|
|
|
Section "Uninstall"
|
2020-05-05 20:20:49 +00:00
|
|
|
|
|
|
|
# Delete startmenu folder
|
|
|
|
RMDir /r "$SMPROGRAMS\Dino"
|
|
|
|
|
2020-05-02 20:03:20 +00:00
|
|
|
# Always delete uninstaller first
|
|
|
|
Delete $INSTDIR\uninstaller.exe
|
|
|
|
|
|
|
|
# now delete installed file
|
|
|
|
Delete $INSTDIR\*
|
|
|
|
|
|
|
|
# Delete the directory
|
|
|
|
RMDir /r $INSTDIR
|
|
|
|
SectionEnd
|