-
Notifications
You must be signed in to change notification settings - Fork 4
/
wxServDisc.nsi
55 lines (37 loc) · 1.2 KB
/
wxServDisc.nsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
!define VERSION "0.3"
Name "wxServDisc ${VERSION}"
OutFile "wxServDisc_${VERSION}-setup.exe"
InstallDir $PROGRAMFILES\wxServDisc
Page license
LicenseData COPYING
Page directory
Page instfiles
Section ""
SetOutPath $INSTDIR
# dll not built by now
# File src\wxServDisc\wxServDisc.dll
File build\src\Release\wxServDisc.lib
File README.md
writeUninstaller $INSTDIR\wxServDisc-uninstall.exe
# now the shortcuts
CreateDirectory "$SMPROGRAMS\wxServDisc"
createShortCut "$SMPROGRAMS\wxServDisc\Readme.lnk" "$INSTDIR\README.md"
createShortCut "$SMPROGRAMS\wxServDisc\Uninstall wxServDisc.lnk" "$INSTDIR\wxServDisc-uninstall.exe"
SectionEnd
section "Uninstall"
# Always delete uninstaller first
delete $INSTDIR\wxServDisc-uninstall.exe
# now delete installed files
delete $INSTDIR\wxServDisc.lib
delete $INSTDIR\README.md
RMDir $INSTDIR
# delete shortcuts
delete "$SMPROGRAMS\wxServDisc\Readme.lnk"
delete "$SMPROGRAMS\wxServDisc\Uninstall wxServDisc.lnk"
RMDir "$SMPROGRAMS\wxServDisc"
sectionEnd
Function un.onInit
MessageBox MB_YESNO "This will uninstall wxServDisc. Continue?" IDYES NoAbort
Abort ; causes uninstaller to quit.
NoAbort:
FunctionEnd