2018-07-25 09:53:51 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2018-07-26 02:16:06 +00:00
|
|
|
|
|
|
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
|
2018-07-27 07:13:02 +00:00
|
|
|
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
|
|
|
|
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
|
2018-07-26 02:16:06 +00:00
|
|
|
|
|
|
|
<Bundle Name="Moonlight Game Streaming Client"
|
2018-07-26 02:33:09 +00:00
|
|
|
Version="!(bind.PackageVersion.Moonlight)"
|
2018-07-25 09:53:51 +00:00
|
|
|
Manufacturer="Moonlight Game Streaming Team"
|
2018-07-26 02:16:06 +00:00
|
|
|
UpgradeCode="466fa35d-4be4-40ef-9ce5-afadc3b63bc5"
|
|
|
|
HelpUrl="https://github.com/moonlight-stream/moonlight-docs/wiki/Setup-Guide"
|
|
|
|
UpdateUrl="https://github.com/moonlight-stream/moonlight-qt/releases"
|
|
|
|
DisableModify="yes"
|
|
|
|
IconSourceFile="..\..\app\moonlight.ico">
|
|
|
|
|
2018-07-27 07:13:02 +00:00
|
|
|
<bal:Condition Message="Moonlight requires Windows 7 or later.">
|
|
|
|
<![CDATA[VersionNT >= v6.1]]>
|
|
|
|
</bal:Condition>
|
|
|
|
|
|
|
|
<!-- https://stackoverflow.com/questions/46637094/how-can-i-find-the-upgrade-code-for-an-installed-msi-file -->
|
|
|
|
<?if $(env.ARCH) ~= x86 ?>
|
|
|
|
<util:ProductSearch Id="Find_VCRedist_x86"
|
|
|
|
UpgradeCode="{C78B8E51-0C65-377E-85D1-282F689FE505}"
|
|
|
|
Result="state"
|
|
|
|
Variable="VCRedist_Present" />
|
|
|
|
<?elseif $(env.ARCH) ~= x64 ?>
|
|
|
|
<util:ProductSearch Id="Find_VCRedist_x64"
|
|
|
|
UpgradeCode="{9B0BAA88-E15F-3A1F-ACC0-B206E9DDF71C}"
|
|
|
|
Result="state"
|
|
|
|
Variable="VCRedist_Present" />
|
|
|
|
<?else ?>
|
|
|
|
<?error Bad ARCH value ?>
|
|
|
|
<?endif ?>
|
|
|
|
|
|
|
|
<?if $(env.ARCH) ~= x64 ?>
|
|
|
|
<bal:Condition Message="This Moonlight installer requires a 64-bit OS.">
|
|
|
|
VersionNT64
|
|
|
|
</bal:Condition>
|
|
|
|
<?endif ?>
|
|
|
|
|
|
|
|
<?if $(env.ARCH) ~= x64 ?>
|
|
|
|
<Variable Name="InstallFolder" Type="string" Value="[ProgramFiles64Folder]Moonlight Game Streaming" />
|
|
|
|
<?elseif $(env.ARCH) ~= x86 ?>
|
|
|
|
<Variable Name="InstallFolder" Type="string" Value="[ProgramFilesFolder]Moonlight Game Streaming" />
|
|
|
|
<?endif ?>
|
2018-07-26 02:16:06 +00:00
|
|
|
|
2018-07-25 09:53:51 +00:00
|
|
|
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">
|
|
|
|
<bal:WixStandardBootstrapperApplication
|
|
|
|
ShowVersion="yes"
|
|
|
|
LicenseFile="license.rtf"
|
|
|
|
LogoFile="..\..\app\moonlight_wix.png"
|
|
|
|
ShowFilesInUse="yes"
|
2018-07-27 07:13:02 +00:00
|
|
|
LaunchTarget="[InstallFolder]\Moonlight.exe" />
|
2018-07-25 09:53:51 +00:00
|
|
|
</BootstrapperApplicationRef>
|
2018-07-26 02:16:06 +00:00
|
|
|
|
2018-07-25 09:53:51 +00:00
|
|
|
<Chain>
|
2018-07-26 02:52:58 +00:00
|
|
|
<ExePackage Cache="no"
|
|
|
|
PerMachine="yes"
|
|
|
|
Permanent="yes"
|
2018-07-27 07:13:02 +00:00
|
|
|
InstallCondition="VCRedist_Present = 2"
|
2018-07-26 02:52:58 +00:00
|
|
|
Vital="yes"
|
|
|
|
Compressed="yes"
|
|
|
|
SourceFile="$(env.VCREDIST_INSTALLER)"
|
|
|
|
InstallCommand="/install /quiet /norestart">
|
|
|
|
<!-- Newer version installed is fine -->
|
|
|
|
<ExitCode Value="1638" Behavior="success" />
|
|
|
|
</ExePackage>
|
2018-07-26 02:33:09 +00:00
|
|
|
<MsiPackage Id="Moonlight" SourceFile="$(var.Moonlight.TargetPath)" Vital="yes">
|
2018-07-26 02:16:06 +00:00
|
|
|
<MsiProperty Name="INSTALLFOLDER" Value="[InstallFolder]" />
|
|
|
|
</MsiPackage>
|
2018-07-25 09:53:51 +00:00
|
|
|
</Chain>
|
2018-07-26 02:16:06 +00:00
|
|
|
|
2018-07-25 09:53:51 +00:00
|
|
|
</Bundle>
|
|
|
|
</Wix>
|