34 lines
915 B
Plaintext
34 lines
915 B
Plaintext
|
OutFile "dist\NavpointInstaller.exe"
|
||
|
# define installation directory
|
||
|
InstallDir $PROFILE\Navpoint
|
||
|
|
||
|
RequestExecutionLevel user
|
||
|
|
||
|
Section
|
||
|
# set the installation directory as the destination for the following actions
|
||
|
SetOutPath $INSTDIR
|
||
|
|
||
|
File dist\navpoint.exe
|
||
|
|
||
|
# create the uninstaller
|
||
|
WriteUninstaller "$INSTDIR\uninstall.exe"
|
||
|
|
||
|
# create a shortcut named "new shortcut" in the start menu programs directory
|
||
|
# point the new shortcut at the program uninstaller
|
||
|
CreateShortcut "$SMPROGRAMS\Uninstall Navpoint.lnk" "$INSTDIR\uninstall.exe"
|
||
|
CreateShortcut "$SMPROGRAMS\Navpoint.lnk" "$INSTDIR\navpoint.exe"
|
||
|
SectionEnd
|
||
|
|
||
|
# uninstaller section start
|
||
|
Section "uninstall"
|
||
|
|
||
|
# Remove the link from the start menu
|
||
|
Delete "$SMPROGRAMS\Uninstall Navpoint.lnk"
|
||
|
|
||
|
# Delete the uninstaller
|
||
|
Delete $INSTDIR\uninstaller.exe
|
||
|
|
||
|
RMDir $INSTDIR
|
||
|
# uninstaller section end
|
||
|
SectionEnd
|