-
Notifications
You must be signed in to change notification settings - Fork 9
/
installer.nsi
40 lines (27 loc) · 858 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
36
37
38
39
40
Name "RayLib PHP"
# define installer name
OutFile "raylib-php.exe"
# set desktop as install directory
InstallDir $PROGRAMFILES\RayLib-PHP
# default section start
Section
# define output path
SetOutPath $INSTDIR
# specify file to go in output path
ZipDLL::extractall "C:\Users\Admin\Apps\php-7.4.4-ts-Win32-vc15-x64\php-7.4.4-ts-Win32-vc15-x64.zip" "$INSTDIR"
# define uninstaller name
WriteUninstaller $INSTDIR\uninstaller.exe
createShortCut "$SMPROGRAMS\raylib-php.lnk" "$INSTDIR\php.exe"
EnVar::AddValue "Path" "$INSTDIR"
#-------
# 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
Delete "$SMPROGRAMS\raylib-php.lnk"
# now delete installed file
Delete $INSTDIR
SectionEnd