Work in progress.
[jlisp] / dep-ui.nsis
CommitLineData
ee79a5f1
MW
1;;; nsis installer script
2
3Name "Dep-UI"
4OutFile "setup-dep-ui.exe"
5InstallDir $PROGRAMFILES\Straylight-Edgeware\Dep-UI
6InstallDirRegKey HKLM Software\Straylight-Edgeware\Dep-UI install-location
7RequestExecutionLevel user
8
9Page license
10Page directory
11Page components
12Page instfiles
13
14UninstPage uninstConfirm
15UninstPage instfiles
16
17LicenseText "The GNU General Public License" "Whatever"
18LicenseData GPL.dostxt
19
20Section "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
41SectionEnd
42
43Section "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
50SectionEnd
51
52Section "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"
56SectionEnd
57
58Section "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
70SectionEnd
71