Statistics
| Branch: | Tag: | Revision:

root / Assets / Installer / Tidmarsh.nsi @ 174:6bb2461a2ff5

History | View | Annotate | Download (1.1 kB)

1
Name "Tidmarsh Living Observatory"
2
OutFile "tidmarsh-%VER%-win.exe"
3
RequestExecutionLevel Admin
4
InstallDir $PROGRAMFILES\Tidmarsh
5
DirText "This will install Tidmarsh Living Observatory %VER% on your computer."
6
7
Section ""
8
9
SetOutPath $INSTDIR
10
11
File Tidmarsh.exe
12
File /r Tidmarsh_Data
13
14
WriteUninstaller $INSTDIR\Uninstall.exe
15
16
CreateDirectory "$SMPROGRAMS\Tidmarsh"
17
CreateShortCut "$SMPROGRAMS\Tidmarsh\Tidmarsh Living Observatory.lnk" "$INSTDIR\Tidmarsh.exe"
18
CreateShortCut "$SMPROGRAMS\Tidmarsh\Uninstall Tidmarsh.lnk" "$INSTDIR\Uninstall.exe"
19
20
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tidmarsh" "DisplayName" "Tidmarsh Living Observatory"
21
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tidmarsh" "UninstallString" "$INSTDIR\Uninstall.exe"
22
23
SectionEnd
24
25
Section "Uninstall"
26
27
Delete $INSTDIR\Uninstall.exe
28
Delete $INSTDIR\Tidmarsh.exe
29
RMDir /r $INSTDIR\Tidmarsh_Data
30
RMDir $INSTDIR
31
32
Delete "$SMPROGRAMS\Tidmarsh\Tidmarsh Living Observatory.lnk"
33
Delete "$SMPROGRAMS\Tidmarsh\Uninstall Tidmarsh.lnk"
34
RMDir "$SMPROGRAMS\Tidmarsh"
35
36
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tidmarsh"
37
38
SectionEnd