-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.nsi
35 lines (31 loc) · 842 Bytes
/
setup.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 py2exeOutputDirectory 'dist'
!define exe 'xfinder.exe'
; Comment out the "SetCompress Off" line and uncomment
; the next line to enable compression. Startup times
; will be a little slower but the executable will be
; quite a bit smaller
SetCompress Off
;SetCompressor lzma
Name 'Xfinder'
RequestExecutionLevel user
OutFile ${exe}
SilentInstall silent
Icon 'icons/raspi.ico'
Section
InitPluginsDir
SetOutPath '$PLUGINSDIR'
File /r '${py2exeOutputDirectory}\*.*'
GetTempFileName $0
DetailPrint $0
Delete $0
StrCpy $0 '$0.bat'
FileOpen $1 $0 'w'
FileWrite $1 '@echo off$\r$\n'
StrCpy $2 $TEMP 2
FileWrite $1 '$2$\r$\n'
FileWrite $1 'cd $PLUGINSDIR$\r$\n'
FileWrite $1 '${exe}$\r$\n'
FileClose $1
nsExec::Exec $0
Delete $0
SectionEnd