meson: specify fuzz linker script as a project arg
[qemu/ar7.git] / qga / installer / qemu-ga.wxs
blob9cb4c3d733020a8a5eafafe9831f6742712d2cd3
1 <?xml version="1.0" encoding="UTF-8"?>
2 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3 <?ifndef env.QEMU_GA_VERSION ?>
4 <?error Environment variable QEMU_GA_VERSION undefined?>
5 <?endif?>
7 <?ifndef env.QEMU_GA_DISTRO ?>
8 <?error Environment variable QEMU_GA_DISTRO undefined?>
9 <?endif?>
11 <?ifndef env.QEMU_GA_MANUFACTURER ?>
12 <?error Environment variable QEMU_GA_MANUFACTURER undefined?>
13 <?endif?>
15 <?ifndef var.Arch?>
16 <?error Define Arch to 32 or 64?>
17 <?endif?>
19 <?ifndef var.Mingw_bin?>
20 <?if $(var.Arch) = "64"?>
21 <?define Mingw_bin=/usr/x86_64-w64-mingw32/sys-root/mingw/bin ?>
22 <?endif?>
23 <?if $(var.Arch) = "32"?>
24 <?define Mingw_bin=/usr/i686-w64-mingw32/sys-root/mingw/bin ?>
25 <?endif?>
26 <?endif?>
28 <?if $(var.Arch) = "64"?>
29 <?define ArchLib=libgcc_s_seh-1.dll?>
30 <?define GaProgramFilesFolder="ProgramFiles64Folder" ?>
31 <?endif?>
33 <?if $(var.Arch) = "32"?>
34 <?define ArchLib=libgcc_s_sjlj-1.dll?>
35 <?define GaProgramFilesFolder="ProgramFilesFolder" ?>
36 <?endif?>
38 <?ifndef var.ArchLib ?>
39 <?error Unexpected Arch value $(var.Arch)?>
40 <?endif?>
42 <Product
43 Name="QEMU guest agent"
44 Id="*"
45 UpgradeCode="{EB6B8302-C06E-4BEC-ADAC-932C68A3A98D}"
46 Manufacturer="$(env.QEMU_GA_MANUFACTURER)"
47 Version="$(env.QEMU_GA_VERSION)"
48 Language="1033">
49 <?if $(var.Arch) = 32 ?>
50 <Condition Message="Error: 32-bit version of Qemu GA can not be installed on 64-bit Windows.">NOT VersionNT64</Condition>
51 <?endif?>
52 <Package
53 Manufacturer="$(env.QEMU_GA_MANUFACTURER)"
54 InstallerVersion="200"
55 Languages="1033"
56 Compressed="yes"
57 InstallScope="perMachine"
59 <Media Id="1" Cabinet="qemu_ga.$(env.QEMU_GA_VERSION).cab" EmbedCab="yes" />
60 <Property Id="WHSLogo">1</Property>
61 <MajorUpgrade
62 DowngradeErrorMessage="Error: A newer version of QEMU guest agent is already installed."
65 <Directory Id="TARGETDIR" Name="SourceDir">
66 <Directory Id="$(var.GaProgramFilesFolder)" Name="QEMU Guest Agent">
67 <Directory Id="qemu_ga_directory" Name="Qemu-ga">
68 <Component Id="qemu_ga" Guid="{908B7199-DE2A-4DC6-A8D0-27A5AE444FEA}">
69 <File Id="qemu_ga.exe" Name="qemu-ga.exe" Source="$(env.BUILD_DIR)/qga/qemu-ga.exe" KeyPath="yes" DiskId="1"/>
70 <ServiceInstall
71 Id="ServiceInstaller"
72 Type="ownProcess"
73 Vital="yes"
74 Name="QEMU-GA"
75 DisplayName="QEMU Guest Agent"
76 Description="QEMU Guest Agent"
77 Start="auto"
78 Account="LocalSystem"
79 ErrorControl="ignore"
80 Interactive="no"
81 Arguments="-d --retry-path"
83 </ServiceInstall>
84 <ServiceControl Id="StartService" Start="install" Stop="both" Remove="uninstall" Name="QEMU-GA" Wait="yes" />
85 </Component>
86 <?ifdef var.InstallVss?>
87 <Component Id="qga_vss_dll" Guid="{CB19C453-FABB-4BB1-ABAB-6B74F687BFBB}">
88 <File Id="qga_vss.dll" Name="qga-vss.dll" Source="$(env.BUILD_DIR)/qga/vss-win32/qga-vss.dll" KeyPath="yes" DiskId="1"/>
89 </Component>
90 <Component Id="qga_vss_tlb" Guid="{D8D584B1-59C2-4FB7-A91F-636FF7BFA66E}">
91 <File Id="qga_vss.tlb" Name="qga-vss.tlb" Source="$(env.BUILD_DIR)/qga/vss-win32/qga-vss.tlb" KeyPath="yes" DiskId="1"/>
92 </Component>
93 <?endif?>
94 <?if $(var.Arch) = "32"?>
95 <Component Id="gspawn-helper-console" Guid="{446185B3-87BE-43D2-96B8-0FEFD9E8696D}">
96 <File Id="gspawn-win32-helper-console.exe" Name="gspawn-win32-helper-console.exe" Source="$(var.Mingw_bin)/gspawn-win32-helper-console.exe" KeyPath="yes" DiskId="1"/>
97 </Component>
98 <Component Id="gspawn-helper" Guid="{CD67A5A3-2DB1-4DA1-A67A-8D71E797B466}">
99 <File Id="gspawn-win32-helper.exe" Name="gspawn-win32-helper.exe" Source="$(var.Mingw_bin)/gspawn-win32-helper-console.exe" KeyPath="yes" DiskId="1"/>
100 </Component>
101 <?endif?>
102 <?if $(var.Arch) = "64"?>
103 <Component Id="gspawn-helper-console" Guid="{9E615A9F-349A-4992-A5C2-C10BAD173660}">
104 <File Id="gspawn-win64-helper-console.exe" Name="gspawn-win64-helper-console.exe" Source="$(var.Mingw_bin)/gspawn-win64-helper-console.exe" KeyPath="yes" DiskId="1"/>
105 </Component>
106 <Component Id="gspawn-helper" Guid="{D201AD22-1846-4E4F-B6E1-C7A908ED2457}">
107 <File Id="gspawn-win64-helper.exe" Name="gspawn-win64-helper.exe" Source="$(var.Mingw_bin)/gspawn-win64-helper-console.exe" KeyPath="yes" DiskId="1"/>
108 </Component>
109 <?endif?>
110 <Component Id="iconv" Guid="{35EE3558-D34B-4F0A-B8BD-430FF0775246}">
111 <File Id="iconv.dll" Name="iconv.dll" Source="$(var.Mingw_bin)/iconv.dll" KeyPath="yes" DiskId="1"/>
112 </Component>
113 <Component Id="libgcc_arch_lib" Guid="{ADD4D07D-4515-4AB6-AF3E-C904961B4BB0}">
114 <File Id="libgcc_arch_lib" Name="$(var.ArchLib)" Source="$(var.Mingw_bin)/$(var.ArchLib)" KeyPath="yes" DiskId="1"/>
115 </Component>
116 <Component Id="libglib" Guid="{D31BFD83-2773-4B65-B45A-E0D2ADA58679}">
117 <File Id="libglib_2.0_0.dll" Name="libglib-2.0-0.dll" Source="$(var.Mingw_bin)/libglib-2.0-0.dll" KeyPath="yes" DiskId="1"/>
118 </Component>
119 <Component Id="libintl" Guid="{A641BC2D-A907-4A94-9149-F30ED430878F}">
120 <File Id="libintl_8.dll" Name="libintl-8.dll" Source="$(var.Mingw_bin)/libintl-8.dll" KeyPath="yes" DiskId="1"/>
121 </Component>
122 <Component Id="libssp" Guid="{7880087B-02B4-4EF6-A5D3-D18F8E3D90E1}">
123 <File Id="libssp_0.dll" Name="libssp-0.dll" Source="$(var.Mingw_bin)/libssp-0.dll" KeyPath="yes" DiskId="1"/>
124 </Component>
125 <Component Id="libwinpthread" Guid="{6C117C78-0F47-4B07-8F34-6BEE11643829}">
126 <File Id="libwinpthread_1.dll" Name="libwinpthread-1.dll" Source="$(var.Mingw_bin)/libwinpthread-1.dll" KeyPath="yes" DiskId="1"/>
127 </Component>
128 <Component Id="libpcre" Guid="{7A86B45E-A009-489A-A849-CE3BACF03CD0}">
129 <File Id="libpcre_1.dll" Name="libpcre-1.dll" Source="$(var.Mingw_bin)/libpcre-1.dll" KeyPath="yes" DiskId="1"/>
130 </Component>
131 <Component Id="registry_entries" Guid="{D075D109-51CA-11E3-9F8B-000C29858960}">
132 <RegistryKey Root="HKLM"
133 Key="Software\$(env.QEMU_GA_MANUFACTURER)\$(env.QEMU_GA_DISTRO)\Tools\QemuGA">
134 <RegistryValue Type="string" Name="ProductID" Value="fb0a0d66-c7fb-4e2e-a16b-c4a3bfe8d13b" />
135 <RegistryValue Type="string" Name="Version" Value="$(env.QEMU_GA_VERSION)" />
136 </RegistryKey>
137 </Component>
138 </Directory>
139 </Directory>
140 </Directory>
142 <Property Id="cmd" Value="cmd.exe"/>
143 <Property Id="REINSTALLMODE" Value="amus"/>
145 <?ifdef var.InstallVss?>
146 <CustomAction Id="RegisterCom"
147 ExeCommand='/c "[qemu_ga_directory]qemu-ga.exe" -s vss-install'
148 Execute="deferred"
149 Property="cmd"
150 Impersonate="no"
151 Return="check"
153 </CustomAction>
154 <CustomAction Id="UnRegisterCom"
155 ExeCommand='/c "[qemu_ga_directory]qemu-ga.exe" -s vss-uninstall'
156 Execute="deferred"
157 Property="cmd"
158 Impersonate="no"
159 Return="check"
161 </CustomAction>
162 <?endif?>
164 <Feature Id="QEMUFeature" Title="QEMU Guest Agent" Level="1">
165 <ComponentRef Id="qemu_ga" />
166 <?ifdef var.InstallVss?>
167 <ComponentRef Id="qga_vss_dll" />
168 <ComponentRef Id="qga_vss_tlb" />
169 <?endif?>
170 <ComponentRef Id="gspawn-helper-console" />
171 <ComponentRef Id="gspawn-helper" />
172 <ComponentRef Id="iconv" />
173 <ComponentRef Id="libgcc_arch_lib" />
174 <ComponentRef Id="libglib" />
175 <ComponentRef Id="libintl" />
176 <ComponentRef Id="libssp" />
177 <ComponentRef Id="libwinpthread" />
178 <ComponentRef Id="registry_entries" />
179 <ComponentRef Id="libpcre" />
180 </Feature>
182 <InstallExecuteSequence>
183 <?ifdef var.InstallVss?>
184 <Custom Action="UnRegisterCom" After="StopServices">Installed</Custom>
185 <Custom Action="RegisterCom" After="InstallServices">NOT REMOVE</Custom>
186 <?endif?>
187 </InstallExecuteSequence>
188 </Product>
189 </Wix>