forked from illuminatedwax/pesterchum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpesterchum-update.nsi
47 lines (32 loc) · 980 Bytes
/
pesterchum-update.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
; The name of the installer
Name "PESTERCHUM3.41"
; The file to write
OutFile "pesterchum3.41.update.exe"
RequestExecutionLevel admin
Page components
Page instfiles
; The stuff to install
Section "Pesterchum"
SectionIn RO
ReadRegStr $INSTDIR HKLM "SOFTWARE\Pesterchum" "Install_Dir"
StrCmp $INSTDIR "" error
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File /r themes
File /r smilies
File /r quirks
File README.mkdn
File CHANGELOG.mkdn
File version.py
File pesterchum.exe
File pesterchum.exe.manifest
Rename $INSTDIR\README.mkdn $INSTDIR\readme.txt
Rename $INSTDIR\CHANGELOG.mkdn $INSTDIR\changelog.txt
Delete "$SMPROGRAMS\Pesterchum\Pesterchum.lnk"
CreateShortcut "$SMPROGRAMS\Pesterchum\Pesterchum.lnk" "$INSTDIR\pesterchum.exe"
Goto done
error:
MessageBox MB_OK "Pesterchum not found on this machine!"
done:
SectionEnd