Follow upstream changes -- rest
[git-darcs-import.git] / release / darcs.nsi
blobd07b208e885dd1843a34b17ffed2a40dd15dca39
2 Name "David's Advanced Version Control System version ${VERSION}"
4 SetCompressor lzma
5 OutFile "darcs-${VERSION}.exe"
6 ;XPStyle on
7 ShowInstDetails show
8 ShowUninstDetails show
10 LicenseData "COPYING"
11 InstallDir $PROGRAMFILES\Darcs
13 Page license
14 Page components
15 Page directory
16 Page instfiles
17 UninstPage uninstConfirm
18 UninstPage instfiles
20 Section "Darcs executable"
21 SetOverwrite on
22 SetOutPath $INSTDIR
24 SetDetailsPrint listonly
26 File darcs.exe
27 SectionEnd
29 Section "Manual"
30 SetOverwrite on
31 SetOutPath $INSTDIR\manual
33 SetDetailsPrint textonly
34 DetailPrint "Copying manual"
35 SetDetailsPrint listonly
37 File manual\*
38 SectionEnd
40 ;Section "Examples"
41 ; SetOverwrite on
42 ; SetOutPath $INSTDIR\examples
44 ; SetDetailsPrint textonly
45 ; DetailPrint "Copying examples"
46 ; SetDetailsPrint listonly
48 ; File darcs.exe
49 ;SectionEnd
51 Section "Uninstall and registry entries"
52 SetOverwrite on
53 SetOutPath $INSTDIR
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
64 SectionEnd
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
72 manual:
73 WriteINIStr "$SMPROGRAMS\Darcs\Darcs manual.url" "InternetShortcut" "URL" "$INSTDIR\manual\darcs.html"
74 nomanual:
75 IfFileExists $INSTDIR\uninstall.exe uninst nouninst
76 uninst:
77 CreateShortCut "$SMPROGRAMS\Darcs\Uninstall Darcs.lnk" "$INSTDIR\uninstall.exe"
78 nouninst:
79 SectionEnd
81 Section -always
82 SetOverwrite on
83 SetOutPath $INSTDIR
84 File COPYING
85 SectionEnd
87 Section Uninstall
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
99 Rmdir $INSTDIR
100 SectionEnd