navpoint/windows_installer.nsi

24 lines
683 B
Plaintext

Name "Navpoint <<version>>"
OutFile "dist\<<distName>>-installer.exe"
InstallDir $PROFILE\Navpoint
RequestExecutionLevel user
Section
# set the installation directory as the destination for the following actions
SetOutPath $INSTDIR
File dist\navpoint.exe
CreateShortcut "$SMPROGRAMS\Navpoint.lnk" "$INSTDIR\navpoint.exe"
CreateShortcut "$DESKTOP\Navpoint.lnk" "$INSTDIR\navpoint.exe"
WriteUninstaller "$INSTDIR\uninstall.exe"
CreateShortcut "$SMPROGRAMS\Uninstall Navpoint.lnk" "$INSTDIR\uninstall.exe"
SectionEnd
Section "uninstall"
Delete "$SMPROGRAMS\Uninstall Navpoint.lnk"
Delete $INSTDIR\uninstaller.exe
RMDir $INSTDIR
SectionEnd