forked from xLightsSequencer/xLights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxLights_4_64bit.iss
146 lines (120 loc) · 6.52 KB
/
xLights_4_64bit.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
; -- xLights_opengl.iss --
; File used for building xLights.exe
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
; oct 27,2017 added xLightsBatchRender.exe to install.
; 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"
[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
; "ArchitecturesAllowed=x64" specifies that Setup cannot run on
; anything but x64.
ArchitecturesAllowed=x64
; "ArchitecturesInstallIn64BitMode=x64" requests that the install be
; done in "64-bit mode" on x64, meaning it should use the native
; 64-bit Program Files directory and the 64-bit view of the registry.
ArchitecturesInstallIn64BitMode=x64
AppName=xLights
AppVersion=2018.6
DefaultDirName={pf64}\xLights
DefaultGroupName=xLights
SetupIconFile=include\xlights64.ico
UninstallDisplayIcon={app}\xLights.exe
Compression=lzma2
SolidCompression=yes
OutputDir=output
OutputBaseFilename=xLights64_2018_x
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "Do you want to create desktop icon?"; Flags: checkablealone
[Files]
Source: "bin64/xLights.exe"; DestDir: "{app}"
Source: "bin64/xlights.map"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin/xlights.windows.properties"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "include\xlights64.ico"; DestDir: "{app}"
Source: "include\xLights_nutcracker.ico"; DestDir: "{app}"
; xSchedule
Source: "bin64/xSchedule.exe"; DestDir: "{app}"
Source: "bin64/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\xSchedule64.ico"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin64/wxmsw311u_gcc_custom.dll"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin64/wxmsw311u_gl_gcc_custom.dll"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin64\libgcc_s_seh-1.dll"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin64\libstdc++-6.dll"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin64\libwinpthread-1.dll"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin64/liblog4cpp.dll"; DestDir: "{app}"; Flags: "ignoreversion"
; avlib - video and audio
Source: "bin64/avcodec-57.dll"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin64/avformat-57.dll"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin64/avutil-55.dll"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin64/swresample-2.dll"; DestDir: "{app}"; Flags: "ignoreversion"
Source: "bin64/swscale-4.dll"; DestDir: "{app}"; Flags: "ignoreversion"
; SDL - audio playing
Source: "bin64/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}"
; Vamp dll's
Source: "bin64/Vamp/*.dll"; DestDir: "{app}"; Flags: "ignoreversion"
; 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}\xLights64"; Filename: "{app}\xLights.EXE"; WorkingDir: "{app}"
Name: "{group}\xSchedule64"; Filename: "{app}\xSchedule.EXE"; WorkingDir: "{app}"
Name: "{commondesktop}\xLights64"; Filename: "{app}\xLights.EXE"; WorkingDir: "{app}"; Tasks: desktopicon ; IconFilename: "{app}\xLights64.ico";
Name: "{commondesktop}\xSchedule64"; Filename: "{app}\xSchedule.EXE"; WorkingDir: "{app}"; Tasks: desktopicon ; IconFilename: "{app}\xSchedule64.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\xLightsBatchRender"; 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};{pf64}\xLights"; Check: NeedsAddPath ('C:\Program Files\xLights')
; Remove Kieth'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;