forked from xLightsSequencer/xLights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xLights_4_32bit.iss
150 lines (126 loc) · 7.05 KB
/
xLights_4_32bit.iss
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
; -- xLights_opengl.iss --
; File used for building xLights.exe
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
; mar 3,2015: added new line for bin/xlights.map
; mar 3,2016: added Source: "bin/avcodec-57.dll"; DestDir: "{app}"; Flags: "ignoreversion"
; mar 3,2016: added Source: "bin/avformat-57.dll"; DestDir: "{app}"; Flags: "ignoreversion"
; mar 3,2016: added Source: "bin/avutil-55.dll"; DestDir: "{app}"; Flags: "ignoreversion"
; mar 3,2016: added Source: "bin/swresample-2.dll"; DestDir: "{app}"; Flags: "ignoreversion"
; mar 3,2016: added Source: "bin/swscale-4.dll"; DestDir: "{app}"; Flags: "ignoreversion"
; mar 3,2016: added Source: "bin/SDL2.dll"; DestDir: "{app}"; Flags: "ignoreversion"
; mar 3,2016: (Removed, No longer needed as of 2016.10) Source: "bin/ffmpeg.exe"; DestDir: "{app}"; Flags: "ignoreversion"
; mar 7, 2016 added DisableDirPage=no . This always prompt for an installation directory
#define MyTitleName "xLights"
#define Year 2018
#define Version 36
#define Bits 32
[Setup]
;; (not yet implemented) SignTool=mystandard
; Tell Windows Explorer to reload the environment
ChangesEnvironment=yes
; setting to DisableDirPage no makes it so users can change the installation directory
DisableDirPage=no
AppName={#MyTitleName}
AppVersion={#Year}.{#Version}
DefaultDirName={pf32}\{#MyTitleName}
DefaultGroupName={#MyTitleName}
SetupIconFile=include\{#MyTitleName}.ico
UninstallDisplayIcon={app}\{#MyTitleName}.exe
Compression=lzma2
SolidCompression=yes
OutputDir=output
OutputBaseFilename={#MyTitleName}{#Bits}_{#Year}_{#Version}
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "Do you want to create desktop icon?"; Flags: checkablealone
[Files]
Source: "bin/xLights.exe"; DestDir: "{app}"
Source: "bin/xlights.map"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin/xlights.windows.properties"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "include\xlights.ico"; DestDir: "{app}"
Source: "include\xLights_nutcracker.ico"; DestDir: "{app}"
; xSchedule
Source: "bin/xSchedule.exe"; DestDir: "{app}"
Source: "bin/xSchedule.map"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin/xschedule.windows.properties"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin/xScheduleWeb\*.*"; DestDir: "{app}/xScheduleWeb"; Flags: replacesameversion recursesubdirs
Source: "include\xSchedule.ico"; DestDir: "{app}"; Flags: "ignoreversion"
; xCapture
Source: "bin/xCapture.exe"; DestDir: "{app}"
Source: "bin/xCapture.map"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin/xcapture.windows.properties"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "include\xcapture.ico"; DestDir: "{app}"; Flags: "ignoreversion"
; xFade
Source: "bin/xFade.exe"; DestDir: "{app}"
Source: "bin/xFade.map"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin/xfade.windows.properties"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "include\xfade.ico"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin/wxmsw311u_gcc_custom.dll"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin/wxmsw311u_gl_gcc_custom.dll"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin/libgcc_s_sjlj-1.dll"; DestDir: "{app}"; Flags: "ignoreversion"
; Use the default installed mingw 32 bit files
Source: "C:\Program Files (x86)\mingw-w64\i686-7.2.0-posix-dwarf-rt_v5-rev1\mingw32\bin\libgcc_s_dw2-1.dll"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "C:\Program Files (x86)\mingw-w64\i686-7.2.0-posix-dwarf-rt_v5-rev1\mingw32\bin\libstdc++-6.dll"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "C:\Program Files (x86)\mingw-w64\i686-7.2.0-posix-dwarf-rt_v5-rev1\mingw32\bin\libwinpthread-1.dll"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin/liblog4cpp.dll"; DestDir: "{app}"; Flags: "ignoreversion"
; avlib - video and audio
Source: "bin/avcodec-57.dll"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin/avformat-57.dll"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin/avutil-55.dll"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin/swresample-2.dll"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin/swscale-4.dll"; DestDir: "{app}"; Flags: "ignoreversion"
; SDL - audio playing
Source: "bin/SDL2.dll"; DestDir: "{app}"; Flags: "ignoreversion"
; Added files for doing Papagayo effects
Source: "bin/extended_dictionary"; DestDir: "{app}"
Source: "bin/phoneme_mapping"; DestDir: "{app}"
Source: "bin/standard_dictionary"; DestDir: "{app}"
Source: "bin/user_dictionary"; DestDir: "{app}"
; Path editor
;Source: "bin/PathEditor.exe"; DestDir: "{app}"
; readmes and licenses
Source: "License.txt"; DestDir: "{app}";
Source: "README.txt"; DestDir: "{app}"; Flags: isreadme
; Color Curves
Source: "colorcurves\*.*"; DestDir: "{app}/colorcurves" ; Flags: replacesameversion recursesubdirs
; Value Curves
Source: "valuecurves\*.*"; DestDir: "{app}/valuecurves" ; Flags: replacesameversion recursesubdirs
; controllers
; Source: "controllers\*.*"; DestDir: "{app}/controllers" ; Flags: replacesameversion recursesubdirs
[Icons]
Name: "{group}\xLights"; Filename: "{app}\xLights.EXE"; WorkingDir: "{app}"
Name: "{group}\xSchedule"; Filename: "{app}\xSchedule.EXE"; WorkingDir: "{app}"
Name: "{commondesktop}\xLights"; Filename: "{app}\xLights.EXE"; WorkingDir: "{app}"; Tasks: desktopicon ; IconFilename: "{app}\xLights.ico";
Name: "{commondesktop}\xSchedule"; Filename: "{app}\xSchedule.EXE"; WorkingDir: "{app}"; Tasks: desktopicon ; IconFilename: "{app}\xSchedule.ico";
[Run]
Filename: "{app}\xLights.exe"; Description: "Launch application"; Flags: postinstall nowait skipifsilent
[Registry]
Root: HKCU; Subkey: "Software\Xlights"; Flags: uninsdeletekey
Root: HKCU; Subkey: "Software\xSchedule"; Flags: uninsdeletekey
Root: HKCU; Subkey: "Software\xCapture"; Flags: uninsdeletekey
Root: HKCU; Subkey: "Software\xFade"; Flags: uninsdeletekey
; set PATH. if it is already there dont add path to our installation. we are doing this so user can run ffmpeg from a cmd prompt
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}\xLights"; Check: NeedsAddPath ('C:\Program Files (x86)\xLights')
; Remove Keith's Batch Render to prevent confusion
[InstallDelete]
Type: files; Name: "{app}\wxmsw310u_gcc_custom.dll"
Type: files; Name: "{app}\wxmsw310u_gl_gcc_custom.dll"
Type: files; Name: "{app}\xLightsBatchRenderer.exe"
Type: files; Name: "{app}\xLightsBatchRenderer.ico"
Type: files; Name: "{group}\xLightsBatchRender.lnk"
Type: files; Name: "{commondesktop}\xLightsBatchRender.lnk"
[Code]
function NeedsAddPath(Param: string): boolean;
var
OrigPath: string;
begin
if not RegQueryStringValue(HKEY_LOCAL_MACHINE,'SYSTEM\CurrentControlSet\Control\Session Manager\Environment', 'Path', OrigPath)
then begin
Result := True;
exit;
end;
// look for the path with leading and trailing semicolon
// Pos() returns 0 if not found
Result := Pos(';' + UpperCase(Param) + ';', ';' + UpperCase(OrigPath) + ';') = 0;
if Result = True then
Result := Pos(';' + UpperCase(Param) + '\;', ';' + UpperCase(OrigPath) + ';') = 0;
end;