-
Notifications
You must be signed in to change notification settings - Fork 0
/
installer.nsi
52 lines (39 loc) · 1.05 KB
/
installer.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
# define installer name
Name MaxImpact
OutFile "install-maximpact.exe"
# set desktop as install directory
InstallDir $DESKTOP\maximpact
# default section start
Section
MessageBox MB_YESNO "Do you want to install MaxImpact?" IDYES continue IDNO abort_installer
abort_installer:
Quit
continue:
# define output path
SetOutPath $INSTDIR
# specify file to go in output path
File *.dll
File *.exe
File *.jar
File maximpact.html
File /r maximpact_lib
ExecWait "$INSTDIR\vcredist_x64.exe"
# define uninstaller name
WriteUninstaller $INSTDIR\uninstaller.exe
#-------
# default section end
SectionEnd
# create a section to define what the uninstaller does.
# the section will always be named "Uninstall"
Section "Uninstall"
# Always delete uninstaller first
Delete $INSTDIR\uninstaller.exe
# now delete installed files
Delete $INSTDIR\*.dll
Delete $INSTDIR\*.exe
Delete $INSTDIR\*.jar
Delete $INSTDIR\maximpact.html
RMDir /r $INSTDIR\maximpact_lib
Delete "$INSTDIR\vcredist_x64.exe"
RMDir $INSTDIR
SectionEnd