Skip to content

Commit

Permalink
Allow user to change installation directory and write uninstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
kazzmir committed Aug 22, 2006
1 parent bdedbc2 commit ad0ea65
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion misc/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,26 @@ OutFile "rafkill-1.2.2.exe"

InstallDir $PROGRAMFILES\Rafkill

# Page wtf
Page directory
Page instfiles

UninstPage uninstConfirm
UninstPage instfiles

Section "Rafkill (required)"
SetOutPath $INSTDIR
File "..\rafkill.exe"
File /r "..\gen"
WriteUninstaller "uninstall.exe"
SectionEnd

Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\Games\Rafkill"
CreateShortCut "$SMPROGRAMS\Games\Rafkill\Uninstall.lnk" "$INSTDIR\uninstall.exe" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\Games\Rafkill\Rafkill.lnk" "$INSTDIR\rafkill.exe" "$INSTDIR\rafkill.exe" 0
SectionEnd

Section "Uninstall"
RMDIR /r "$SMPROGRAMS\Games\Rafkill"
RMDIR /r "$INSTDIR"
SectionEnd

0 comments on commit ad0ea65

Please sign in to comment.