chiark / gitweb /
Work in progress.
[jlisp] / dep-ui.nsis
1 ;;; nsis installer script
2
3 Name "Dep-UI"
4 OutFile "setup-dep-ui.exe"
5 InstallDir $PROGRAMFILES\Straylight-Edgeware\Dep-UI
6 InstallDirRegKey HKLM Software\Straylight-Edgeware\Dep-UI install-location
7 RequestExecutionLevel user
8
9 Page license
10 Page directory
11 Page components
12 Page instfiles
13
14 UninstPage uninstConfirm
15 UninstPage instfiles
16
17 LicenseText "The GNU General Public License" "Whatever"
18 LicenseData GPL.dostxt
19
20 Section "Programs"
21   SetOutPath $INSTDIR
22   SectionIn RO
23   File dep-ui.jar
24   File /oname=rolling.dui rolling.lisp
25   WriteUninstaller uninstall.exe
26   WriteRegStr \
27     HKLM Software\Straylight-Edgeware\Dep-UI \
28     install-location $INSTDIR
29   WriteRegStr \
30     HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\Example2 \
31     DisplayName Dep-UI
32   WriteRegStr \
33     HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\Example2 \
34     UninstallString $INSTDIR\uninstall.exe
35   WriteRegDWORD \
36     HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\Example2 \
37     NoModify 1
38   WriteRegDWORD \
39     HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\Example2 \
40     NoRepair 1
41 SectionEnd
42
43 Section "Start menu shortcuts"
44   CreateDirectory $SMPROGRAMS\Dep-UI
45   CreateShortCut $SMPROGRAMS\Dep-UI\Rolling.lnk \
46     $SYSDIR\javaw.exe "-cp $\"$INSTDIR\dep-ui.jar$\" Startup $\"$INSTDIR\rolling.dui$\"" \
47     $SYSDIR\javaw.exe 0
48   CreateShortCut $SMPROGRAMS\Dep-UI\Uninstall.lnk \
49     $INSTDIR\uninstall.exe "" $INSTDIR\uninstall.exe 0
50 SectionEnd
51
52 Section "Register file type"
53   WriteRegStr HKCR .dui "" dep-ui-file
54   WriteRegStr HKCR .dui "Content Type" application/x-dep-ui
55   WriteRegStr HKCR dep-ui-file\shell\open\command "" "$SYSDIR\javaw.exe -cp $\"$INSTDIR\dep-ui.jar$\" Startup %1"
56 SectionEnd
57
58 Section "Uninstall"
59   Delete $INSTDIR\dep-ui.jar
60   Delete $INSTDIR\rolling.dui
61   Delete $INSTDIR\uninstall.exe
62   Delete $SMPROGRAMS\Dep-UI\*.*
63   DeleteRegKey HKLM Software\Straylight-Edgeware\Dep-UI
64   DeleteRegKey \
65     HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\Example2
66   DeleteRegKey HKCR .dui
67   DeleteRegKey HKCR dep-ui-file
68   RMDir $SMPROGRAMS\Dep-UI
69   RMDir $INSTDIR
70 SectionEnd
71