summaryrefslogtreecommitdiff
path: root/data/spicy-for-windows.nsis
blob: 76380d9efeb5dccb29cc999a32ee37bc786abf78 (plain)
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
#!Nsis Installer Command Script
#
# This is an NSIS Installer Command Script generated automatically
# by the Fedora nsiswrapper program.  For more information see:
#
#   http://fedoraproject.org/wiki/MinGW
#
# To build an installer from the script you would normally do:
#
#   makensis spicy-for-windows.nsis
#
# which will generate the output file 'spicy-for-windows.exe' which is a Windows
# installer containing your program.

Name "spicy"
OutFile "spicy-for-windows.exe"
InstallDir "c:\spicy"
InstallDirRegKey HKLM SOFTWARE\spicy "Install_Dir"

ShowInstDetails hide
ShowUninstDetails hide

# Uncomment this to enable BZip2 compression, which results in
# slightly smaller files but uses more memory at install time.
SetCompressor bzip2

XPStyle on

Page components
Page directory
Page instfiles

ComponentText "Select which optional components you want to install."

DirText "Please select the installation folder."

Section "spicy"
  SectionIn RO

  SetOutPath "$INSTDIR\bin\"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libatk-1.0-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libcairo-2.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libcelt051-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libcrypto-10.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libexpat-1.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libfontconfig-1.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libfreetype-6.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libgdk-win32-2.0-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libgdk_pixbuf-2.0-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libgio-2.0-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libglib-2.0-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libgmodule-2.0-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libgobject-2.0-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libgstapp-0.10-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libgstaudio-0.10-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libgstbase-0.10-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libgstcontroller-0.10-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libgstfft-0.10-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libgstinterfaces-0.10-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libgstpbutils-0.10-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libgstreamer-0.10-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libgstvideo-0.10-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libgthread-2.0-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libgtk-win32-2.0-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libiconv-2.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libintl-8.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libjpeg-7.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//liborc-0.4-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//liborc-test-0.4-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libpango-1.0-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libpangocairo-1.0-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libpangowin32-1.0-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libpixman-1-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libpng14-14.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libspice-client-glib-1.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libspice-client-gtk-1.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libssl-10.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//libxml2-2.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin//zlib1.dll"

  SetOutPath "$INSTDIR\bin"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin/gst-discoverer-0.10.exe"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin/gst-feedback.exe"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin/gst-inspect-0.10.exe"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin/gst-inspect.exe"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin/gst-launch-0.10.exe"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin/gst-launch.exe"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin/gst-typefind-0.10.exe"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin/gst-typefind.exe"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin/gst-xmlinspect-0.10.exe"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin/gst-xmlinspect.exe"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin/gst-xmllaunch-0.10.exe"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin/gst-xmllaunch.exe"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin/libgdk-win32-2.0-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin/libgdk_pixbuf-2.0-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin/libpangoft2-1.0-0.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin/pango-querymodules.exe"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin/snappy.exe"
  File "/usr/i686-pc-mingw32/sys-root/mingw/bin/spicy.exe"

  SetOutPath "$INSTDIR\etc"
  File /r "/usr/i686-pc-mingw32/sys-root/mingw/etc/fonts"
  File /r "/usr/i686-pc-mingw32/sys-root/mingw/etc/gtk-2.0"
  CreateDirectory "$INSTDIR\etc\pango"

  SetOutPath "$INSTDIR\lib"
  File /r "/usr/i686-pc-mingw32/sys-root/mingw/lib/gdk-pixbuf-2.0"

  SetOutPath "$INSTDIR\lib\gstreamer-0.10"
  File "/usr/i686-pc-mingw32/sys-root/mingw/lib/gstreamer-0.10/libgstapp.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/lib/gstreamer-0.10/libgstaudioconvert.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/lib/gstreamer-0.10/libgstaudiofx.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/lib/gstreamer-0.10/libgstaudiorate.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/lib/gstreamer-0.10/libgstaudioresample.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/lib/gstreamer-0.10/libgstaudiotestsrc.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/lib/gstreamer-0.10/libgstautodetect.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/lib/gstreamer-0.10/libgstcoreelements.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/lib/gstreamer-0.10/libgstdirectsoundsink.dll"
  File "/usr/i686-pc-mingw32/sys-root/mingw/lib/gstreamer-0.10/libgstdirectsoundsrc.dll"

  SetOutPath "$INSTDIR\lib"
  File /r "/usr/i686-pc-mingw32/sys-root/mingw/lib/gtk-2.0"
  File /r "/usr/i686-pc-mingw32/sys-root/mingw/lib/pango"

  ReadEnvStr $0 COMSPEC
  SetOutPath "$INSTDIR"
  nsExec::ExecToLog '$0 /C bin\pango-querymodules.exe > etc\pango\pango.modules'
SectionEnd

Section "Start Menu Shortcuts"
  CreateDirectory "$SMPROGRAMS\spicy"
  CreateShortCut "$SMPROGRAMS\spicy\Uninstall spicy.lnk" "$INSTDIR\Uninstall spicy.exe" "" "$INSTDIR\Uninstall spicy.exe" 0
  CreateShortCut "$SMPROGRAMS\spicy\spicy.exe.lnk" "$INSTDIR\bin\spicy.exe" "" "$INSTDIR\bin\spicy.exe" 0
SectionEnd

Section "Desktop Icons"
  CreateShortCut "$DESKTOP\spicy.exe.lnk" "$INSTDIR\bin\spicy.exe" "" "$INSTDIR\bin\spicy.exe" 0
SectionEnd

Section "Uninstall"
  Delete /rebootok "$DESKTOP\spicy.exe.lnk"
  Delete /rebootok "$SMPROGRAMS\spicy\spicy.exe.lnk"
  Delete /rebootok "$SMPROGRAMS\spicy\Uninstall spicy.lnk"
  RMDir "$SMPROGRAMS\spicy"

  RMDir /r "$INSTDIR\lib\pango"

  RMDir /r "$INSTDIR\lib\gtk-2.0"

  Delete /rebootok "$INSTDIR\lib\gstreamer-0.10\libgstdirectsoundsrc.dll"
  Delete /rebootok "$INSTDIR\lib\gstreamer-0.10\libgstdirectsoundsink.dll"
  Delete /rebootok "$INSTDIR\lib\gstreamer-0.10\libgstcoreelements.dll"
  Delete /rebootok "$INSTDIR\lib\gstreamer-0.10\libgstautodetect.dll"
  Delete /rebootok "$INSTDIR\lib\gstreamer-0.10\libgstaudiotestsrc.dll"
  Delete /rebootok "$INSTDIR\lib\gstreamer-0.10\libgstaudioresample.dll"
  Delete /rebootok "$INSTDIR\lib\gstreamer-0.10\libgstaudiorate.dll"
  Delete /rebootok "$INSTDIR\lib\gstreamer-0.10\libgstaudiofx.dll"
  Delete /rebootok "$INSTDIR\lib\gstreamer-0.10\libgstaudioconvert.dll"
  Delete /rebootok "$INSTDIR\lib\gstreamer-0.10\libgstapp.dll"
  RMDir "$INSTDIR\lib\gstreamer-0.10"

  RMDir /r "$INSTDIR\lib\gdk-pixbuf-2.0"

  RMDir /r "$INSTDIR\etc\pango"

  RMDir /r "$INSTDIR\etc\gtk-2.0"

  RMDir /r "$INSTDIR\etc\fonts"

  Delete /rebootok "$INSTDIR\bin\spicy.exe"
  Delete /rebootok "$INSTDIR\bin\snappy.exe"
  Delete /rebootok "$INSTDIR\bin\pango-querymodules.exe"
  Delete /rebootok "$INSTDIR\bin\libpangoft2-1.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\libgdk_pixbuf-2.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\libgdk-win32-2.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\gst-xmllaunch.exe"
  Delete /rebootok "$INSTDIR\bin\gst-xmllaunch-0.10.exe"
  Delete /rebootok "$INSTDIR\bin\gst-xmlinspect.exe"
  Delete /rebootok "$INSTDIR\bin\gst-xmlinspect-0.10.exe"
  Delete /rebootok "$INSTDIR\bin\gst-typefind.exe"
  Delete /rebootok "$INSTDIR\bin\gst-typefind-0.10.exe"
  Delete /rebootok "$INSTDIR\bin\gst-launch.exe"
  Delete /rebootok "$INSTDIR\bin\gst-launch-0.10.exe"
  Delete /rebootok "$INSTDIR\bin\gst-inspect.exe"
  Delete /rebootok "$INSTDIR\bin\gst-inspect-0.10.exe"
  Delete /rebootok "$INSTDIR\bin\gst-feedback.exe"
  Delete /rebootok "$INSTDIR\bin\gst-discoverer-0.10.exe"
  RMDir "$INSTDIR\bin"

  Delete /rebootok "$INSTDIR\bin\\zlib1.dll"
  Delete /rebootok "$INSTDIR\bin\\libxml2-2.dll"
  Delete /rebootok "$INSTDIR\bin\\libssl-10.dll"
  Delete /rebootok "$INSTDIR\bin\\libspice-client-gtk-1.dll"
  Delete /rebootok "$INSTDIR\bin\\libspice-client-glib-1.dll"
  Delete /rebootok "$INSTDIR\bin\\libpng14-14.dll"
  Delete /rebootok "$INSTDIR\bin\\libpixman-1-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libpangowin32-1.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libpangocairo-1.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libpango-1.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\\liborc-test-0.4-0.dll"
  Delete /rebootok "$INSTDIR\bin\\liborc-0.4-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libjpeg-7.dll"
  Delete /rebootok "$INSTDIR\bin\\libintl-8.dll"
  Delete /rebootok "$INSTDIR\bin\\libiconv-2.dll"
  Delete /rebootok "$INSTDIR\bin\\libgtk-win32-2.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libgthread-2.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libgstvideo-0.10-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libgstreamer-0.10-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libgstpbutils-0.10-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libgstinterfaces-0.10-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libgstfft-0.10-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libgstcontroller-0.10-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libgstbase-0.10-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libgstaudio-0.10-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libgstapp-0.10-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libgobject-2.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libgmodule-2.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libglib-2.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libgio-2.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libgdk_pixbuf-2.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libgdk-win32-2.0-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libfreetype-6.dll"
  Delete /rebootok "$INSTDIR\bin\\libfontconfig-1.dll"
  Delete /rebootok "$INSTDIR\bin\\libexpat-1.dll"
  Delete /rebootok "$INSTDIR\bin\\libcrypto-10.dll"
  Delete /rebootok "$INSTDIR\bin\\libcelt051-0.dll"
  Delete /rebootok "$INSTDIR\bin\\libcairo-2.dll"
  Delete /rebootok "$INSTDIR\bin\\libatk-1.0-0.dll"
  RMDir "$INSTDIR\bin\"
  RMDir "$INSTDIR"
SectionEnd

Section -post
  WriteUninstaller "$INSTDIR\Uninstall spicy.exe"
SectionEnd