2014-03-07 19:41:08 +00:00
<?xml version="1.0" encoding="UTF-8"?>
2014-03-10 19:31:14 +00:00
<Wix
xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:fire="http://schemas.microsoft.com/wix/FirewallExtension"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
2014-03-07 19:41:08 +00:00
<?include Include.wxi?>
2014-03-10 19:31:14 +00:00
<Product
2014-03-10 20:21:14 +00:00
Id="*"
UpgradeCode="$(var.UpgradeGuid)"
Name="$(var.Name) ($(var.PlatformSimpleName))"
Language="1033"
Version="$(var.Version)"
Manufacturer="$(var.Author)">
2014-03-10 19:31:14 +00:00
<Package InstallerVersion="300" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of $(var.Name) is already installed." />
2014-03-07 19:41:08 +00:00
<MediaTemplate EmbedCab="yes" />
<UIRef Id="WixUI_InstallDir" />
2014-03-10 20:21:14 +00:00
<?if $(var.Platform) = "x86" ?>
<Condition Message="You are running a 64-bit version of Windows. Please install the 64-bit version of $(var.Name) instead of the 32-bit version.">NOT Msix64</Condition>
<?endif ?>
<!-- causes ICE61 warning, but stops user from installing many instances from nightly builds. -->
<Upgrade Id="$(var.UpgradeGuid)">
<UpgradeVersion Minimum="0.0.0.0" Property="UPGRADE" />
</Upgrade>
2014-03-07 19:41:08 +00:00
<Feature Id="ProductFeature" Title="$(var.Name)">
<ComponentGroupRef Id="ProductComponents" />
2014-03-10 19:31:14 +00:00
<MergeRef Id="CRT" />
2014-03-07 19:41:08 +00:00
</Feature>
<Icon Id="synergy.ico" SourceFile="$(var.ResPath)/synergy.ico"/>
<WixVariable Id="WixUILicenseRtf" Value="$(var.ResPath)\License.rtf" />
<WixVariable Id="WixUIBannerBmp" Value="$(var.ResPath)\banner.bmp" />
<WixVariable Id="WixUIDialogBmp" Value="$(var.ResPath)\dialog.bmp" />
<Property Id="ARPPRODUCTICON" Value="synergy.ico" />
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
2014-03-10 19:31:14 +00:00
<Property Id="MSIRESTARTMANAGERCONTROL" Value="Disable" />
2014-03-07 19:41:08 +00:00
<Property Id="LEGACY_UNINSTALL_EXISTS">
<RegistrySearch
Id="LegacyRegistrySearch" Root="HKLM"
Key="SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Synergy"
Name="UninstallString" Win64="no" Type="file">
<FileSearch Id="LegacyFileSearch" Name="uninstall.exe" />
</RegistrySearch>
</Property>
2014-03-10 19:31:14 +00:00
<Condition Message="An existing installation of $(var.Name) was detected, please uninstall it before continuing.">
2014-03-07 19:41:08 +00:00
NOT LEGACY_UNINSTALL_EXISTS
</Condition>
2014-03-10 19:31:14 +00:00
<CustomAction Id="StartGui" FileKey="GuiProgram" ExeCommand="" Return="asyncNoWait" />
2014-03-07 19:41:08 +00:00
<InstallExecuteSequence>
<Custom Action="StartGui" After="InstallFinalize">NOT Installed</Custom>
</InstallExecuteSequence>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="$(var.ProgramFilesFolder)">
2014-03-10 19:31:14 +00:00
<Directory Id="INSTALLFOLDER" Name="$(var.Name)">
2014-03-10 20:21:14 +00:00
<Merge Id="CRT" Language="0" SourceFile="$(var.CRT)" DiskId="1" />
2014-03-10 19:31:14 +00:00
</Directory>
2014-03-07 19:41:08 +00:00
</Directory>
<Directory Id="ProgramMenuFolder" />
</Directory>
</Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
2014-03-10 19:31:14 +00:00
<Component Id="Core" Guid="EC9AD3B0-277C-4157-B5C8-5FD5B6A5F4AD">
<File Source="$(var.BinPath)/synergyd.exe" KeyPath="yes" />
2014-03-07 19:41:08 +00:00
<ServiceInstall
2014-03-10 19:31:14 +00:00
Id="ServiceInstall" Name="Synergy" DisplayName="$(var.Name)"
Description="Controls the $(var.Name) foreground processes."
2014-03-07 19:41:08 +00:00
Type="ownProcess" Start="auto" ErrorControl="normal" />
2014-03-10 19:31:14 +00:00
2014-03-07 19:41:08 +00:00
<ServiceControl
Id="ServiceControl" Name="Synergy"
Start="install" Stop="both" Remove="uninstall" />
2014-03-10 19:31:14 +00:00
2014-03-07 19:41:08 +00:00
<File Source="$(var.BinPath)/synergys.exe">
2014-03-10 19:31:14 +00:00
<fire:FirewallException Id="SereverFirewallException" Name="$(var.Name)" Scope="any" />
2014-03-07 19:41:08 +00:00
</File>
2014-03-10 19:31:14 +00:00
2014-03-07 19:41:08 +00:00
<File Source="$(var.BinPath)/synergyc.exe" />
<File Source="$(var.BinPath)/syntool.exe" />
<File Source="$(var.BinPath)/synwinhk.dll" />
<File Source="$(var.BinPath)/synwinxt.dll" />
2014-03-10 19:31:14 +00:00
2014-03-07 19:41:08 +00:00
<RegistryKey Root="HKCR" Key="*\shellex\DataHandler">
<RegistryValue Value="{1BE208B1-BC21-4E39-8BB6-A5DC3F51479E}" Type="string" />
</RegistryKey>
2014-03-10 19:31:14 +00:00
2014-03-07 19:41:08 +00:00
<RegistryKey Root="HKCR" Key="CLSID\{1BE208B1-BC21-4E39-8BB6-A5DC3F51479E}\InprocServer32">
<RegistryValue Value="[INSTALLFOLDER]synwinxt.dll" Type="string" />
<RegistryValue Name="ThreadingModel" Value="Apartment" Type="string" />
</RegistryKey>
2014-03-10 19:31:14 +00:00
2014-03-07 19:41:08 +00:00
</Component>
<Component Id="Gui" Guid="BAC8149B-6287-45BF-9C27-43D71ED40214">
2014-03-10 19:31:14 +00:00
<File Id="GuiProgram" Source="$(var.BinPath)/synergy.exe" KeyPath="yes">
2014-03-07 19:41:08 +00:00
<Shortcut Id="GuiShortcut" Name="$(var.Name)" Directory="ProgramMenuFolder" Icon="synergy.ico" Advertise="yes" />
</File>
2014-03-10 19:31:14 +00:00
<File Source="$(var.QtPath)\libgcc_s_dw2-1.dll" CompanionFile="GuiProgram" />
<File Source="$(var.QtPath)\mingwm10.dll" CompanionFile="GuiProgram" />
<File Source="$(var.QtPath)\QtCore4.dll" CompanionFile="GuiProgram" />
<File Source="$(var.QtPath)\QtGui4.dll" CompanionFile="GuiProgram" />
<File Source="$(var.QtPath)\QtNetwork4.dll" CompanionFile="GuiProgram" />
2014-03-07 19:41:08 +00:00
</Component>
</ComponentGroup>
</Fragment>
</Wix>