2011-02-14 01:28:25 -05:00
|
|
|
|
|
|
|
; The name of the installer
|
|
|
|
Name "PESTERCHUM3.14a"
|
|
|
|
|
|
|
|
; The file to write
|
2011-02-18 03:17:13 -05:00
|
|
|
OutFile "pesterchum3.14a.3.exe"
|
2011-02-14 01:28:25 -05:00
|
|
|
|
2011-02-14 11:15:32 -05:00
|
|
|
InstallDir C:\Pesterchum
|
2011-02-14 01:28:25 -05:00
|
|
|
|
|
|
|
InstallDirRegKey HKLM "Software\Pesterchum" "Install_Dir"
|
|
|
|
RequestExecutionLevel admin
|
|
|
|
|
|
|
|
Page components
|
|
|
|
Page directory
|
|
|
|
Page instfiles
|
|
|
|
|
|
|
|
UninstPage uninstConfirm
|
|
|
|
UninstPage instfiles
|
|
|
|
|
|
|
|
|
|
|
|
; The stuff to install
|
|
|
|
Section "Pesterchum"
|
|
|
|
|
|
|
|
SectionIn RO
|
|
|
|
|
|
|
|
; Set output path to the installation directory.
|
|
|
|
SetOutPath $INSTDIR
|
|
|
|
|
|
|
|
; Put file there
|
|
|
|
File /r *.*
|
|
|
|
|
|
|
|
; Write the installation path into the registry
|
|
|
|
WriteRegStr HKLM SOFTWARE\Pesterchum "Install_Dir" "$INSTDIR"
|
|
|
|
|
|
|
|
; Write the uninstall keys for Windows
|
|
|
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Pesterchum" "DisplayName" "PESTERCHUM"
|
|
|
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Pesterchum" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
|
|
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Pesterchum" "NoModify" 1
|
|
|
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Pesterchum" "NoRepair" 1
|
|
|
|
WriteUninstaller "uninstall.exe"
|
|
|
|
|
|
|
|
CreateDirectory "$SMPROGRAMS\Pesterchum"
|
|
|
|
CreateShortcut "$SMPROGRAMS\Pesterchum\Pesterchum.lnk" "$INSTDIR\pesterchum.exe"
|
2011-02-14 11:15:32 -05:00
|
|
|
CreateShortcut "$DESKTOP\Pesterchum.lnk" "$INSTDIR\pesterchum.exe"
|
2011-02-14 01:28:25 -05:00
|
|
|
CreateShortcut "$SMPROGRAMS\Pesterchum\Readme.lnk" "$INSTDIR\readme.txt"
|
|
|
|
CreateShortcut "$SMPROGRAMS\Pesterchum\Uninstall.lnk" "$INSTDIR\uninstall.exe"
|
2011-02-14 11:15:32 -05:00
|
|
|
CreateShortcut "$SMPROGRAMS\Pesterchum\Logs.lnk" "$INSTDIR\logs"
|
|
|
|
|
2011-02-14 01:28:25 -05:00
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
|
|
Section "Uninstall"
|
|
|
|
|
|
|
|
; Remove registry keys
|
|
|
|
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Pesterchum"
|
|
|
|
DeleteRegKey HKLM SOFTWARE\Pesterchum
|
|
|
|
|
|
|
|
; Remove files and uninstaller
|
|
|
|
Delete $INSTDIR\uninstall.exe
|
|
|
|
|
|
|
|
; Remove shortcuts, if any
|
|
|
|
Delete "$SMPROGRAMS\Pesterchum\*.*"
|
|
|
|
|
|
|
|
; Remove directories used
|
|
|
|
RMDir "$SMPROGRAMS\Pesterchum"
|
|
|
|
RMDir /r "$INSTDIR"
|
|
|
|
|
|
|
|
SectionEnd
|