1 <?xml version='1.0' encoding="utf-8"?>
4 * Copyright (C) 2011 VideoLAN and its authors
6 * Author: Ludovic Fauvet <etix@videolan.org>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 <?include $(sys.CURRENTDIR)\config.wxi?>
24 <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'
25 xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
28 Name='$(var.ProductName) $(var.Version) ($(var.PlatformString))'
30 Version='$(var.VersionLong)'
31 Manufacturer='$(var.Manufacturer)'
32 UpgradeCode='d2e0205b-0d3a-46e2-adf7-0504ff48cf04'>
34 Description='$(var.ShortProductName) - The video swiss knife'
35 Manufacturer='$(var.Manufacturer)'
36 InstallPrivileges='elevated'
37 InstallScope='perMachine'
38 InstallerVersion='200'
40 Platform='$(var.Platform)'/>
42 <MajorUpgrade Schedule="afterInstallInitialize" DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit."/>
44 <Icon Id="vlc.ico" SourceFile="$(var.SourceDir)/vlc.ico"/>
46 <!-- The about link that appears in Add & Remove Programs. -->
47 <Property Id="ARPURLINFOABOUT" Value="$(var.AboutURL)" />
48 <!-- The help link that appears in Add & Remove Programs. -->
49 <Property Id="ARPHELPLINK" Value="$(var.SupportURL)" />
50 <!-- The update link that appears in Add & Remove Programs. -->
51 <Property Id="ARPURLUPDATEINFO" Value="$(var.UpdatesURL)" />
52 <!-- The icon that appears in Add & Remove Programs. -->
53 <Property Id="ARPPRODUCTICON" Value="vlc.ico" />
56 <Property Id="ApplicationFolderName" Value="$(var.Manufacturer)\$(var.AppFolder)" />
57 <Property Id="WixAppFolder" Value="WixPerMachineFolder" />
58 <Property Id="APPLICATIONFOLDER">
59 <RegistrySearch Id="FindInstallRegDir" Type="raw" Root="HKLM" Win64="$(var.Win64)" Key="Software\VideoLAN\VLC" Name="InstallDir" />
62 <WixVariable Id="WixUISupportPerUser" Value="0" />
63 <WixVariable Id="WixUILicenseRtf" Value="LICENSE.rtf" />
64 <WixVariable Id="WixUIBannerBmp" Value="bannrbmp.bmp" />
66 <Media Id='1' Cabinet='product.cab' EmbedCab='yes' CompressionLevel="high" />
68 <Directory Id='TARGETDIR' Name='SourceDir'>
69 <Directory Id='$(var.PlatformProgramFilesFolder)' Name='PFiles'>
70 <Directory Id='VideoLANFolder' Name='$(var.Manufacturer)'>
71 <Directory Id='APPLICATIONFOLDER' Name='$(var.AppFolder)' FileSource="$(var.SourceDir)">
73 <Component Id="InstallRegDir" Guid="$(var.CompInstallRegDir)" DiskId="1" Win64="$(var.Win64)">
74 <RegistryKey Id='RegInstallDir' Root='HKLM' Key='Software\VideoLAN\VLC' Action='createAndRemoveOnUninstall' >
75 <RegistryValue Name='InstallDir' Type='string' Value='[APPLICATIONFOLDER]' />
79 <Component Id='CompVLC' Guid='$(var.CompVLCexe)' Win64="$(var.Win64)">
80 <File Id='vlc.exe' Name='vlc.exe' KeyPath='yes' Vital='yes' DiskId='1' />
81 <File Id='vlc.exe.manifest' Name='vlc.exe.manifest' DiskId='1' />
83 <Shortcut Id="DesktopShortcut"
84 Directory="DesktopFolder"
85 Name="$(var.ProductName)"
86 WorkingDirectory="APPLICATIONFOLDER"
87 Description="$(var.ProductName)"
91 <!-- Capabilities keys for Vista/7 "Set Program Access and Defaults" -->
92 <RegistryValue Root="HKLM" Key="Software\Clients\Media\VLC\Capabilities" Name="ApplicationDescription" Value="$(var.ProductName)" Type="string" />
93 <RegistryValue Root="HKLM" Key="Software\Clients\Media\VLC\Capabilities" Name="ApplicationIcon" Value="[#vlc.exe],0" Type="string" />
94 <RegistryValue Root="HKLM" Key="Software\Clients\Media\VLC\Capabilities" Name="ApplicationName" Value="$(var.ProductName)" Type="string" />
95 <RegistryValue Root="HKLM" Key="Software\Clients\Media\VLC\DefaultIcon" Value="[#vlc.exe],0" Type="string" />
96 <RegistryValue Root="HKLM" Key="Software\Clients\Media\VLC\shell\Open\command" Value=""[#vlc.exe]" --started-from-file "%1"" Type="string" />
97 <RegistryValue Root="HKLM" Key="Software\RegisteredApplications" Name="$(var.ShortProductName)" Value="Software\Clients\Media\VLC\Capabilities" Type="string" />
99 <!-- Open With... contextual menu -->
100 <RegistryValue Root="HKCR" Key="Applications\vlc.exe\shell\open" Name="$(var.ShortProductName)" Value="$(var.ProductName)" Type="string" />
102 <!-- File association -->
103 <!-- <?include extensions.wxi?> -->
105 <!-- App Paths to support Start, Run -->
106 <RegistryValue Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\vlc.exe" Value="[#vlc.exe]" Type="string" />
107 <RegistryValue Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\vlc.exe" Name="Path" Value="[APPLICATIONFOLDER]" Type="string" />
111 <Component Id='CompTXT' Guid='7fbd228c-87d8-4e91-85b3-aa65e03c9f1e' Win64="$(var.Win64)">
112 <File Id='AUTHORS.txt' Name='AUTHORS.txt' DiskId='1' />
113 <File Id='COPYING.txt' Name='COPYING.txt' DiskId='1' />
114 <File Id='NEWS.txt' Name='NEWS.txt' DiskId='1' />
115 <File Id='README.txt' Name='README.txt' DiskId='1' />
116 <File Id='THANKS.txt' Name='THANKS.txt' DiskId='1' />
119 <Component Id='CompLibvlccore' Guid='efa826fd-0037-4ccd-9573-604fde3b9efa' Win64="$(var.Win64)">
120 <File Id='libvlccore.dll' Name='libvlccore.dll' KeyPath='yes' Vital='yes' DiskId='1' />
123 <Component Id='CompLibvlc' Guid='50d7e1e1-4512-4020-9f7b-5dc8484574f3' Win64="$(var.Win64)">
124 <File Id='libvlc.dll' Name='libvlc.dll' KeyPath='yes' Vital='yes' DiskId='1' />
125 <File Id='libvlc.dll.manifest' Name='libvlc.dll.manifest' DiskId='1' />
128 <Component Id='CompNpvlc' Guid='e7d6b54c-c4ea-4280-90f5-c6ae80073d25' Win64="$(var.Win64)">
129 <File Id='npvlc.dll' Name='npvlc.dll' KeyPath='yes' DiskId='1' />
130 <File Id='npvlc.dll.manifest' Name='npvlc.dll.manifest' DiskId='1' />
133 <Component Id='CompAxvlc' Guid='cabe28b1-5586-4ac3-815b-4f3a834c0d54' Win64="$(var.Win64)">
134 <File Id='axvlc.dll' Name='axvlc.dll' KeyPath='yes' DiskId='1' />
135 <File Id='axvlc.dll.manifest' Name='axvlc.dll.manifest' DiskId='1' />
138 <Component Id='CompCacheGen' Guid='e1b4a499-e223-4c18-9de0-258f12b8dcfa' Win64="$(var.Win64)">
139 <File Id='vlc_cache_gen.exe' Name='vlc-cache-gen.exe' KeyPath='yes' DiskId='1' />
142 <Component Id='CompIcon' Guid='8707410c-55fe-4c38-924e-438762b8b82e' Win64="$(var.Win64)">
143 <File Id='vlc.ico' Name='vlc.ico' KeyPath='yes' DiskId='1' />
146 <Directory Id='PLUGINSDIR' Name='plugins'>
147 <Component Id='CompPluginsCache' Guid='0b72e987-8e3c-4201-aa3e-5b57ca9c040e' Win64="$(var.Win64)">
148 <RemoveFile Id="RemovePluginsCache" Name="plugins.dat" On="uninstall" />
151 <Directory Id='LOCALEDIR' Name='locale' />
152 <Directory Id='LUADIR' Name='lua' />
153 <!-- <Directory Id='OSDMENUDIR' Name='osdmenu' /> -->
154 <Directory Id='SKINSDIR' Name='skins' />
156 <Component Id='CompPlayDiscs' Guid='b0d90296-b20c-4c74-a3b3-a7694e011f25' Win64="$(var.Win64)">
158 <RegistryValue Root="HKCR" Key="AudioCD\shell\PlayWithVLC" Value="Play with VLC media player" Type="string" />
159 <RegistryValue Root="HKCR" Key="AudioCD\shell\PlayWithVLC\command" Value=""[#vlc.exe]" --started-from-file cdda:///%1" Type="string" />
161 <RegistryValue Root="HKCR" Key="DVD\shell\PlayWithVLC" Value="Play with VLC media player" Type="string" />
162 <RegistryValue Root="HKCR" Key="DVD\shell\PlayWithVLC\command" Value=""[#vlc.exe]" --started-from-file dvd:///%1" Type="string" />
164 <!-- DVD video Handler -->
165 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayDVDMovieOnArrival" Name="VLCPlayDVDMovieOnArrival" Value="" Type="string" />
166 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDMovieOnArrival" Name="Action" Value="Play DVD movie" Type="string" />
167 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDMovieOnArrival" Name="DefaultIcon" Value="[#vlc.exe],0" Type="string" />
168 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDMovieOnArrival" Name="InvokeProgID" Value="VLC.DVDMovie" Type="string" />
169 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDMovieOnArrival" Name="InvokeVerb" Value="Open" Type="string" />
170 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDMovieOnArrival" Name="Provider" Value="$(var.ProductName)" Type="string" />
172 <!-- Audio CD Handler -->
173 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayCDAudioOnArrival" Name="VLCPlayCDAudioOnArrival" Value="" Type="string" />
174 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayCDAudioOnArrival" Name="Action" Value="Play audio CD" Type="string" />
175 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayCDAudioOnArrival" Name="DefaultIcon" Value="[#vlc.exe],0" Type="string" />
176 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayCDAudioOnArrival" Name="InvokeProgID" Value="VLC.CDAudio" Type="string" />
177 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayCDAudioOnArrival" Name="InvokeVerb" Value="Open" Type="string" />
178 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayCDAudioOnArrival" Name="Provider" Value="$(var.ProductName)" Type="string" />
181 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayVideoCDMovieOnArrival" Name="VLCPlayVCDMovieOnArrival" Value="" Type="string" />
182 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayVCDMovieOnArrival" Name="Action" Value="Play VCD movie" Type="string" />
183 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayVCDMovieOnArrival" Name="DefaultIcon" Value="[#vlc.exe],0" Type="string" />
184 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayVCDMovieOnArrival" Name="InvokeProgID" Value="VLC.VCDMovie" Type="string" />
185 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayVCDMovieOnArrival" Name="InvokeVerb" Value="Open" Type="string" />
186 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayVCDMovieOnArrival" Name="Provider" Value="$(var.ProductName)" Type="string" />
188 <!-- SVCD Handler -->
189 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlaySuperVideoCDMovieOnArrival" Name="VLCPlaySVCDMovieOnArrival" Value="" Type="string" />
190 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlaySVCDMovieOnArrival" Name="Action" Value="Play SVCD movie" Type="string" />
191 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlaySVCDMovieOnArrival" Name="DefaultIcon" Value="[#vlc.exe],0" Type="string" />
192 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlaySVCDMovieOnArrival" Name="InvokeProgID" Value="VLC.SVCDMovie" Type="string" />
193 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlaySVCDMovieOnArrival" Name="InvokeVerb" Value="Open" Type="string" />
194 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlaySVCDMovieOnArrival" Name="Provider" Value="$(var.ProductName)" Type="string" />
196 <!-- DVD Audio Handler -->
197 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayDVDAudioOnArrival" Name="VLCPlayDVDAudioOnArrival" Value="" Type="string" />
198 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDAudioOnArrival" Name="Action" Value="Play audio DVD" Type="string" />
199 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDAudioOnArrival" Name="DefaultIcon" Value="[#vlc.exe],0" Type="string" />
200 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDAudioOnArrival" Name="InvokeProgID" Value="VLC.OPENFolder" Type="string" />
201 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDAudioOnArrival" Name="InvokeVerb" Value="Open" Type="string" />
202 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDAudioOnArrival" Name="Provider" Value="$(var.ProductName)" Type="string" />
204 <!-- Generic video files Handler -->
205 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayVideoFilesOnArrival" Name="VLCPlayVideoFilesOnArrival" Value="" Type="string" />
206 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayVideoFilesOnArrival" Name="Action" Value="Play video files" Type="string" />
207 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayVideoFilesOnArrival" Name="DefaultIcon" Value="[#vlc.exe],0" Type="string" />
208 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayVideoFilesOnArrival" Name="InvokeProgID" Value="VLC.OPENFolder" Type="string" />
209 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayVideoFilesOnArrival" Name="InvokeVerb" Value="Open" Type="string" />
210 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayVideoFilesOnArrival" Name="Provider" Value="$(var.ProductName)" Type="string" />
212 <!-- Generic audio files Handler -->
213 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayMusicFilesOnArrival" Name="VLCPlayMusicFilesOnArrival" Value="" Type="string" />
214 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayMusicFilesOnArrival" Name="Action" Value="Play audio files" Type="string" />
215 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayMusicFilesOnArrival" Name="DefaultIcon" Value="[#vlc.exe],0" Type="string" />
216 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayMusicFilesOnArrival" Name="InvokeProgID" Value="VLC.OPENFolder" Type="string" />
217 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayMusicFilesOnArrival" Name="InvokeVerb" Value="Open" Type="string" />
218 <RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayMusicFilesOnArrival" Name="Provider" Value="$(var.ProductName)" Type="string" />
221 <RegistryValue Root="HKCR" Key="VLC.DVDMovie" Value="VLC DVD Movie" Type="string" />
222 <RegistryValue Root="HKCR" Key="VLC.DVDMovie\shell" Value="Open" Type="string" />
223 <RegistryValue Root="HKCR" Key="VLC.DVDMovie\shell\open\command" Value=""[#vlc.exe]" --started-from-file dvd:///%1" Type="string" />
224 <RegistryValue Root="HKCR" Key="VLC.DVDMovie\DefaultIcon" Value="[#vlc.exe],0" Type="string" />
226 <RegistryValue Root="HKCR" Key="VLC.CDAudio" Value="VLC CD Audio" Type="string" />
227 <RegistryValue Root="HKCR" Key="VLC.CDAudio\shell" Value="Open" Type="string" />
228 <RegistryValue Root="HKCR" Key="VLC.CDAudio\shell\open\command" Value=""[#vlc.exe]" --started-from-file cdda:///%1" Type="string" />
229 <RegistryValue Root="HKCR" Key="VLC.CDAudio\DefaultIcon" Value="[#vlc.exe],0" Type="string" />
231 <RegistryValue Root="HKCR" Key="VLC.VCDMovie" Value="VLC VCD Movie" Type="string" />
232 <RegistryValue Root="HKCR" Key="VLC.VCDMovie\shell" Value="Open" Type="string" />
233 <RegistryValue Root="HKCR" Key="VLC.VCDMovie\shell\open\command" Value=""[#vlc.exe]" --started-from-file vcd:///%1" Type="string" />
234 <RegistryValue Root="HKCR" Key="VLC.VCDMovie\DefaultIcon" Value="[#vlc.exe],0" Type="string" />
236 <RegistryValue Root="HKCR" Key="VLC.SVCDMovie" Value="VLC SVCD Movie" Type="string" />
237 <RegistryValue Root="HKCR" Key="VLC.SVCDMovie\shell" Value="Open" Type="string" />
238 <RegistryValue Root="HKCR" Key="VLC.SVCDMovie\shell\open\command" Value=""[#vlc.exe]" --started-from-file vcd:///%1" Type="string" />
239 <RegistryValue Root="HKCR" Key="VLC.SVCDMovie\DefaultIcon" Value="[#vlc.exe],0" Type="string" />
241 <RegistryValue Root="HKCR" Key="VLC.OPENFolder" Value="VLC Play Content" Type="string" />
242 <RegistryValue Root="HKCR" Key="VLC.OPENFolder\shell" Value="Open" Type="string" />
243 <RegistryValue Root="HKCR" Key="VLC.OPENFolder\shell\open\command" Value=""[#vlc.exe]" %1" Type="string" />
244 <RegistryValue Root="HKCR" Key="VLC.OPENFolder\DefaultIcon" Value="[#vlc.exe],0" Type="string" />
253 <Directory Id="ProgramMenuFolder">
254 <Directory Id="ProgramMenuManufacturerFolder" Name="$(var.Manufacturer)">
255 <Directory Id="ProgramMenuProductFolder" Name="$(var.ShortProductName)" />
258 <Directory Id="DesktopFolder" Name="Desktop"/>
261 <DirectoryRef Id="ProgramMenuProductFolder">
262 <Component Id="CompProgramMenuShortcuts" Guid="*" Win64="$(var.Win64)">
263 <!-- create folders -->
264 <CreateFolder Directory="ProgramMenuManufacturerFolder" />
265 <CreateFolder Directory="ProgramMenuProductFolder" />
266 <!-- remove folder -->
267 <RemoveFolder Id="RemoveProgramMenuManufacturerFolder"
268 Directory="ProgramMenuManufacturerFolder"
270 <RemoveFolder Id="RemoveProgramMenuProductFolder"
271 Directory="ProgramMenuProductFolder"
273 <!-- Application shortcuts -->
274 <Shortcut Id="VLCShortcut" Name="$(var.ProductName)" Target="[APPLICATIONFOLDER]vlc.exe" />
275 <Shortcut Id="SkinShortcut" Name="$(var.ProductName) skinned" Target="[APPLICATIONFOLDER]vlc.exe" Arguments="-Iskins" />
276 <Shortcut Id="VLCCleanShortcut" Name="Reset $(var.ProductName) preferences and cache files" Target="[APPLICATIONFOLDER]vlc.exe" Arguments="--reset-config --reset-plugins-cache vlc://quit" />
277 <Shortcut Id="NEWSShortcut" Name="Release Notes" Target="[APPLICATIONFOLDER]NEWS.txt" />
278 <util:InternetShortcut Id="WebsiteShortcut" Name="VideoLAN website" Target="http://www.videolan.org/"/>
279 <util:InternetShortcut Id="DocumentationShortcut" Name="Documentation" Target="http://www.videolan.org/doc/"/>
280 <!-- RegistryValue whichs serves as KeyPath -->
281 <RegistryValue Root="HKCU"
282 Key="Software\VideoLAN\VLC"
283 Name="StartMenuShortcuts"
290 <Feature Id='VLC' Title='$(var.ProductName)' Level='1' Absent="disallow" AllowAdvertise="no" Display="expand" Description="The $(var.ProductName) application">
291 <ComponentRef Id='InstallRegDir' />
292 <ComponentRef Id='CompVLC' />
293 <ComponentRef Id='CompLibvlccore' />
294 <ComponentRef Id='CompLibvlc' />
295 <ComponentRef Id='CompNpvlc' />
296 <ComponentRef Id='CompCacheGen' />
297 <ComponentRef Id='CompIcon' />
298 <ComponentRef Id='CompTXT' />
299 <ComponentRef Id='CompPluginsCache' />
300 <ComponentRef Id='CompProgramMenuShortcuts' />
302 <ComponentGroupRef Id='CompPluginsGroup' />
303 <ComponentGroupRef Id='CompLocaleGroup' />
304 <ComponentGroupRef Id='CompLuaGroup' />
305 <!-- <ComponentGroupRef Id='CompOsdmenuGroup' /> -->
306 <ComponentGroupRef Id='CompSkinsGroup' />
308 <Feature Id='ACTIVEX' Title='ActiveX plugin' Level='1' AllowAdvertise="no">
309 <ComponentRef Id='CompAxvlc' />
310 <ComponentGroupRef Id='CompAxvlcGroup' />
312 <Feature Id='MOZILLA' Title='Mozilla plugin' Level='1000' AllowAdvertise="no">
313 <ComponentRef Id='CompNpvlc' />
315 <Feature Id='DISCSPLAYBACK' Title='Discs Playback' Level='1' AllowAdvertise="no">
316 <ComponentRef Id='CompPlayDiscs' />
318 <Feature Id='FILEASSOCIATION' Title='Extensions' Level='1' AllowAdvertise="no">
319 <ComponentRef Id='CompFileAssociation' />
321 <Feature Id='EXPLORERINTEGRATION' Title='Explorer integration' Level='1' AllowAdvertise="no">
327 <UIRef Id="WixUI_Advanced" />
329 <InstallExecuteSequence>
330 <!-- <RemoveExistingProducts After="InstallValidate" /> -->
331 <Custom Action="ExecVLCCacheGen" Before="InstallFinalize">REINSTALL OR NOT Installed</Custom>
332 <Custom Action="SetExecVLCCacheGen" Before="ExecVLCCacheGen">REINSTALL OR NOT Installed</Custom>
333 </InstallExecuteSequence>
336 <!-- Launch silently vlc-cache-gen.exe during install -->
337 <CustomAction Id = "SetExecVLCCacheGen"
338 Property = "ExecVLCCacheGen"
339 Value = ""[#vlc_cache_gen.exe]" "[APPLICATIONFOLDER]plugins"" />
340 <CustomAction Id = "ExecVLCCacheGen"
342 DllEntry = "CAQuietExec"
347 <!-- Launch VLC after setup exits -->
348 <CustomAction Id = "StartAppOnExit"
351 Execute = "immediate"
353 Return = "asyncNoWait" />
354 <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT"
355 Value="Launch VLC media player when setup exits." />
358 <Publish Dialog = "ExitDialog"
362 Value = "StartAppOnExit">
363 WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed
365 <ProgressText Action="ExecVLCCacheGen">Generating modules cache...</ProgressText>
372 BACKUP: MANUAL REGISTRATION OF AXVLC.DLL
373 **** THIS IS METHOD IS DEPRECATED ****
375 Within the <InstallExecuteSequence> node:
376 <Custom Action="RegisterAxvlc" After="InstallFinalize">NOT Installed</Custom>
377 <Custom Action="UnregisterAxvlc" Before="InstallInitialize">Installed</Custom>
379 Within the package add these custom actions:
381 <CustomAction Id = "RegisterAxvlc"
382 Directory = "APPLICATIONFOLDER"
383 ExeCommand = 'regsvr32.exe /s "[APPLICATIONFOLDER]axvlc.dll"'
386 <CustomAction Id = "UnregisterAxvlc"
387 Directory = "APPLICATIONFOLDER"
388 ExeCommand = 'regsvr32.exe /s /u "[APPLICATIONFOLDER]axvlc.dll"' />
390 Finally within the <UI> node:
392 <ProgressText Action="RegisterAxvlc">Registering DirectX plugin...</ProgressText>
393 <ProgressText Action="UnregisterAxvlc">Removing DirectX plugin...</ProgressText>