forked from pratikone/videoVenom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
installer.nsi
66 lines (47 loc) · 1.77 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
; example1.nsi
;
; This script is perhaps one of the simplest NSIs you can make. All of the
; optional settings are left to their default settings. The installer simply
; prompts the user asking them where to install, and drops a copy of example1.nsi
; there.
;--------------------------------
; The name of the installer
Name "Video Venom installer"
; The file to write
OutFile "videoVenom_installer.exe"
; The default installation directory
InstallDir $DESKTOP\videoVenom
; Request application privileges for Windows Vista
RequestExecutionLevel user
;--------------------------------
; Pages
Page directory
Page instfiles
;--------------------------------
; The stuff to install
Section "" ;No components page, name is not important
; Set output path to the installation directory.
SetOutPath $INSTDIR
# create the uninstaller
WriteUninstaller "$INSTDIR\uninstall.exe"
# create a shortcut named "video venom" in the start menu programs directory
# point the new shortcut at the program uninstaller
; Put file there
File /r "build\*.*"
File /r "dist\*.*"
CreateShortCut "$SMPROGRAMS\Uninstall Video Venom.lnk" "$INSTDIR\uninstall.exe"
SetOutPath "$INSTDIR\window" #necessary for making shortcut start in right folder
CreateShortCut "$SMPROGRAMS\Video Venom.lnk" "$INSTDIR\window\window.exe"
CreateShortCut "$DESKTOP\Video Venom.lnk" "$INSTDIR\window\window.exe"
SectionEnd ; end the section
# uninstaller section start
Section "uninstall"
# first, delete the uninstaller
Delete "$INSTDIR\uninstall.exe"
# second, remove the link from the start menu
Delete "$SMPROGRAMS\Video Venom.lnk"
Delete "$DESKTOP\Video Venom.lnk"
Delete "$SMPROGRAMS\Uninstall Video Venom.lnk"
RMDir /r "$INSTDIR\window"
# uninstaller section end
SectionEnd