-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathinstaller.nsi
35 lines (25 loc) · 938 Bytes
/
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
# define name of installer
OutFile "CookieViz 2.3.0 win x86.exe"
# define installation directory
InstallDir $APPDATA\CookieViz\
# For removing Start Menu shortcut in Windows 7
RequestExecutionLevel user
# start default section
Section
# set the installation directory as the destination for the following actions
SetOutPath $INSTDIR
# create the uninstaller
WriteUninstaller "$INSTDIR\uninstall.exe"
# create a shortcut named "new shortcut" in the start menu programs directory
# point the new shortcut at the program uninstaller
CreateShortcut "$SMPROGRAMS\Uinstall CookieViz.lnk" "$INSTDIR\uninstall.exe"
SectionEnd
# uninstaller section start
Section "uninstall"
# first, delete the uninstaller
Delete "$INSTDIR\uninstall.exe"
# second, remove the link from the start menu
Delete "$SMPROGRAMS\Uinstall CookieViz.lnk"
RMDir $INSTDIR
# uninstaller section end
SectionEnd