1 <?xml version="1.0" encoding="utf-8"?>
3 <!-- Copyright (c) 2016 Apple Inc. All rights reserved. -->
5 <Wix xmlns = "http://schemas.microsoft.com/wix/2006/wi"
6 xmlns:fire = "http://schemas.microsoft.com/wix/FirewallExtension" >
8 <?define ProductManufacturer = "Apple Inc."?>
9 <?define ProductName = "Bonjour (QuickLooks Testing)"?>
10 <?define UpgradeCode = "46AE3251-43D6-41CF-8CDF-E902C38516D1"?>
11 <?define ProductVersion = "1.0.0"?>
12 <?define ProductVersionMarketing = "1.0.0"?>
13 <?if $(var.Platform) = x64?>
14 <?define Win64 = "yes" ?>
15 <?define PlatformSystemFolder = "System64Folder"?>
16 <?define PlatformProgramFilesFolder = "ProgramFiles64Folder"?>
17 <?define PlatformInstallDir = "INSTALLDIR64"?>
18 <?define GUID_DNSSDExe = "528ACC12-D4A8-11DE-927F-58D855D89593"?>
19 <?define GUID_DNSSDDLL = "20F30EC6-1F92-11DC-8314-0800200C9A66"?>
20 <?define GUID_MDNSNSPDLL = "255EBC6C-1F92-11DC-8314-0800200C9A66"?>
21 <?define GUID_MDNSResponderExe = "BB3076CA-D4DF-11E0-8AC8-AA0E4824019B"?>
23 <?define Win64 = "no" ?>
24 <?define PlatformSystemFolder = "SystemFolder"?>
25 <?define PlatformProgramFilesFolder = "ProgramFilesFolder"?>
26 <?define PlatformInstallDir = "INSTALLDIR"?>
27 <?define GUID_DNSSDExe = "DCA08E52-8D4E-43AF-A0F7-9B809FCCFEBF"?>
28 <?define GUID_DNSSDDLL = "E6B826D2-6338-4822-8DEA-EC03C2CA41A7"?>
29 <?define GUID_MDNSNSPDLL = "0E416468-0A21-4778-BE61-64AAA5BE1039"?>
30 <?define GUID_MDNSResponderExe = "836FE314-37A7-4905-90F0-AFE25F315CA3"?>
32 <?define GUID_InstallerCache = "EDD5CC92-97D7-4364-9CA6-F7001C75A90E"?>
37 Manufacturer = "$(var.ProductManufacturer)"
38 Name = "$(var.ProductName)"
39 UpgradeCode = "$(var.UpgradeCode)"
40 Version = "$(var.ProductVersion)" >
43 Keywords = "Installer,MSI"
44 Comments = "$(var.ProductName) $(var.ProductVersion)"
46 Description = "[ProductName] Installer"
47 InstallerVersion = "300"
49 Manufacturer = "$(var.ProductManufacturer)"
50 SummaryCodepage = "1252" />
52 <!-- Launch Conditions -->
54 Message = "You do not have sufficient privileges to complete this installation for all users of the machine. Log on as an administrator and then retry this installation." >
55 <![CDATA[Privileged]]>
58 Message = "[ProductName] requires that your computer is running Windows XP SP2 or newer.">
59 <![CDATA[((VersionNT=501 AND ServicePackLevel>=2) OR VersionNT>501)]]>
61 <?if $(var.Win64) = "no"?>
63 Message = "This installer is intended for 32-bit versions of Windows" >
64 <![CDATA[NOT VersionNT64]]>
68 <!-- Directory Table -->
69 <Directory Id="TARGETDIR" Name="SourceDir">
70 <Directory Id="$(var.PlatformSystemFolder)" />
71 <Directory Id="$(var.PlatformProgramFilesFolder)">
72 <Directory Id="Bonjour64InstallFolder" Name="Bonjour">
73 <Directory Id="$(var.PlatformInstallDir)" />
76 <Directory Id="DesktopFolder" />
77 <Directory Id="CommonAppDataFolder" Name="Application Data">
78 <Directory Id="AppleCommonAppDataFolder" Name="Apple">
79 <Directory Id="CachedInstallationsFolder" Name="Installer Cache">
80 <Directory Id="INSTALLERCACHE" Name="$(var.ProductName) $(var.ProductVersion)" />
87 <Feature Id="Bonjour" Title="Bonjour" Level="1" AllowAdvertise="no" Display="expand">
88 <ComponentRef Id="InstallerCache" />
89 <Feature Id="mDNSResponder" Title="mDNSResponder" Level="1" AllowAdvertise="no" Absent="disallow">
90 <ComponentRef Id="dns_sd.exe" />
91 <ComponentRef Id="dnssd.dll" />
92 <ComponentRef Id="mdnsNSP.dll" />
93 <ComponentRef Id="mDNSResponder.exe" />
97 <!-- InstallerCache -->
98 <DirectoryRef Id="INSTALLERCACHE">
99 <Component Id="InstallerCache" Guid="$(var.GUID_InstallerCache)" KeyPath="yes">
100 <Condition><![CDATA[NOT DONTCACHEMSI]]></Condition>
102 <CopyFile Id="BonjourQuickLooks.msi" SourceProperty="SourceDir" SourceName="BonjourQuickLooks.msi" DestinationDirectory="INSTALLERCACHE" />
103 <RemoveFile Id="BonjourQuickLooks.msi" Directory="INSTALLERCACHE" Name="BonjourQuickLooks.msi" On="uninstall" />
104 <RemoveFolder Id="INSTALLERCACHE" Directory="INSTALLERCACHE" On="uninstall" />
109 <DirectoryRef Id="$(var.PlatformSystemFolder)">
110 <Component Id="dns_sd.exe" Guid="$(var.GUID_DNSSDExe)" Win64="$(var.Win64)">
111 <File Id="dns_sd.exe" Name="dns-sd.exe" KeyPath="yes" Source="$(var.dns-sd.TargetPath)" />
113 <Component Id="dnssd.dll" Guid="$(var.GUID_DNSSDDLL)" Win64="$(var.Win64)">
114 <File Id="dnssd.dll" Name="dnssd.dll" KeyPath="yes" Source="$(var.DLL.TargetPath)" />
118 <DirectoryRef Id="$(var.PlatformInstallDir)">
119 <Component Id="mdnsNSP.dll" Guid="$(var.GUID_MDNSNSPDLL)" Win64="$(var.Win64)">
120 <File Id="mdnsNSP.dll" Name="mdnsNSP.dll" Source="$(var.mdnsNSP.TargetPath)" KeyPath="yes" SelfRegCost="1024" />
122 <Component Id="mDNSResponder.exe" Guid="$(var.GUID_MDNSResponderExe)" Win64="$(var.Win64)">
123 <File Id="mDNSResponder.exe" Name="mDNSResponder.exe" Source="$(var.mDNSResponder.TargetPath)" KeyPath="yes">
124 <fire:FirewallException Id="mDNSException1" Name="Bonjour Service" IgnoreFailure="yes" Scope="any" />
127 Id = "BonjourService"
128 Name = "Bonjour Service"
129 DisplayName = "Bonjour Service"
130 Description = "Enables hardware devices and software services to automatically configure themselves on the network and advertise their presence."
133 ErrorControl = "normal"
135 <ServiceDependency Id="Tcpip" Group="no" />
138 Id = "BonjourService"
139 Name = "Bonjour Service"
145 Name = "ManageLLRouting"
147 Key = "SYSTEM\CurrentControlSet\Services\Bonjour Service\Parameters"
152 Key = "SOFTWARE\Apple Inc.\Bonjour"
153 Action = "createAndRemoveOnUninstall" >
157 Value = "[$(var.PlatformInstallDir)]" />
161 Value = "$(var.ProductVersion)" />
167 <Media Id="1" EmbedCab="yes" Cabinet="BonjourQuickLooks.cab" CompressionLevel="high" />
170 <Property Id="ALLUSERS" Value="1" />
171 <Property Id="ARPNOMODIFY" Value="1" />
172 <Property Id="MSIRESTARTMANAGERCONTROL" Value="Disable" />
174 <MajorUpgrade AllowDowngrades="yes" Schedule="afterInstallValidate" />