2 Name "David's Advanced Version Control System version ${VERSION}"
5 OutFile "darcs-${VERSION}.exe"
11 InstallDir $PROGRAMFILES\Darcs
17 UninstPage uninstConfirm
20 Section "Darcs executable"
24 SetDetailsPrint listonly
31 SetOutPath $INSTDIR\manual
33 SetDetailsPrint textonly
34 DetailPrint "Copying manual"
35 SetDetailsPrint listonly
42 ; SetOutPath $INSTDIR\examples
44 ; SetDetailsPrint textonly
45 ; DetailPrint "Copying examples"
46 ; SetDetailsPrint listonly
51 Section "Uninstall and registry entries"
55 WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Darcs" "UninstallString" '"$INSTDIR\uninstall.exe"'
56 WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Darcs" "InstallLocation" "$INSTDIR"
57 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Darcs" "DisplayName" "David's Advanced Revision Control System ${VERSION}"
58 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Darcs" "DisplayVersion" "${VERSION}"
59 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Darcs" "URLInfoAbout" "http://abridgegame.org/darcs/"
60 WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Darcs" "NoModify" "1"
61 WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Darcs" "NoRepair" "1"
63 WriteUninstaller $INSTDIR\uninstall
.exe
66 Section "Startmenu shortcuts"
67 CreateDirectory $SMPROGRAMS\Darcs
68 CreateShortCut "$SMPROGRAMS\Darcs\License.lnk" "$WINDIR\notepad.exe" "$INSTDIR\COPYING"
69 WriteINIStr "$SMPROGRAMS\Darcs\Darcs site.url" "InternetShortcut" "URL" "http://abridgegame.org/darcs/"
71 IfFileExists $INSTDIR\manual\
*.* manual nomanual
73 WriteINIStr "$SMPROGRAMS\Darcs\Darcs manual.url" "InternetShortcut" "URL" "$INSTDIR\manual\darcs.html"
75 IfFileExists $INSTDIR\uninstall
.exe uninst nouninst
77 CreateShortCut "$SMPROGRAMS\Darcs\Uninstall Darcs.lnk" "$INSTDIR\uninstall.exe"
88 SetDetailsPrint textonly
89 DetailPrint "Uninstalling Darcs"
90 SetDetailsPrint listonly
92 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Darcs"
94 Delete $INSTDIR\darcs
.exe
95 Delete $INSTDIR\COPYING
96 Rmdir
/r
$INSTDIR\examples
97 Rmdir
/r
$INSTDIR\manual
98 Rmdir
/r
$SMPROGRAMS\Darcs