pesterchum/pesterchum-update.nsi

42 lines
928 B
Text
Raw Normal View History

2011-02-14 01:28:25 -05:00
; The name of the installer
2011-06-26 18:14:19 -04:00
Name "PESTERCHUM3.418"
2011-02-14 01:28:25 -05:00
; The file to write
2011-06-26 18:14:19 -04:00
OutFile "pesterchum3.418.update.exe"
2011-02-14 01:28:25 -05:00
RequestExecutionLevel admin
Page components
Page instfiles
; The stuff to install
Section "Pesterchum"
SectionIn RO
ReadRegStr $INSTDIR HKLM "SOFTWARE\Pesterchum" "Install_Dir"
StrCmp $INSTDIR "" error
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File /r themes
File /r smilies
File library.zip
File pesterchum.exe
Delete "$SMPROGRAMS\Pesterchum\Pesterchum.lnk"
2011-06-26 18:14:19 -04:00
Delete "$SMPROGRAMS\Pesterchum\PesterChumDebug.lnk"
2011-02-14 01:28:25 -05:00
CreateShortcut "$SMPROGRAMS\Pesterchum\Pesterchum.lnk" "$INSTDIR\pesterchum.exe"
2011-06-26 18:14:19 -04:00
CreateShortcut "$SMPROGRAMS\Pesterchum\PesterchumDebug.lnk" "$INSTDIR\pesterchum_debug.exe"
2011-02-14 01:28:25 -05:00
Goto done
error:
MessageBox MB_OK "Pesterchum not found on this machine!"
done:
SectionEnd