mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 02:30:52 +00:00
120 lines
6.8 KiB
XML
120 lines
6.8 KiB
XML
<!-- This block is autogenerated using scripts\update-msvcredist.ps1 -->
|
|
<?define VCREDIST_VER = "14.44.35211.0" ?>
|
|
<?define VCREDIST_X64_SIZE = "25635768" ?>
|
|
<?define VCREDIST_X64_SHA512 = "E131B93ACDE5FFC76C19EB0784183A1E94DFA9FE06111A7830EAE3AD8583895575DD4DCA66AA70EFDDB243C95735A0105EFCD3042B4B5CA445D3D8E8C39D957E" ?>
|
|
<?define VCREDIST_X64_URL = "https://download.visualstudio.microsoft.com/download/pr/7ebf5fdb-36dc-4145-b0a0-90d3d5990a61/CC0FF0EB1DC3F5188AE6300FAEF32BF5BEEBA4BDD6E8E445A9184072096B713B/VC_redist.x64.exe" ?>
|
|
<?define VCREDIST_X64_UPGRADE_CODE = "36F68A90-239C-34DF-B58C-64B30153CE35" ?>
|
|
<?define VCREDIST_ARM64_SIZE = "11722336" ?>
|
|
<?define VCREDIST_ARM64_SHA512 = "0599CDA3543551E56E3CA560A88278D8A293ED30C812515A730863FAA7C224F5AA2CFE818D9083A26C755F0DAB5651FA610B95AEF0D25AE05F4AF6414CB36D8D" ?>
|
|
<?define VCREDIST_ARM64_URL = "https://download.visualstudio.microsoft.com/download/pr/d7450eb5-03e1-436d-9e7e-deb5fe4759b3/5139E1440C3A20B92153A4DB561C069A0175AAF76C276C3E5B6F56099EDCF4B0/VC_redist.arm64.exe" ?>
|
|
<?define VCREDIST_ARM64_UPGRADE_CODE = "DC9BAE42-810B-423A-9E25-E4073F1C7B00" ?>
|
|
|
|
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
|
|
|
|
<Bundle Name="Moonlight Game Streaming Client"
|
|
Version="!(bind.PackageVersion.Moonlight_x64)"
|
|
Manufacturer="Moonlight Game Streaming Project"
|
|
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">
|
|
|
|
<bal:Condition Message="This version of Moonlight requires Windows 10 or later." Condition="VersionNT >= v10.0" />
|
|
<bal:Condition Message="This version of Moonlight requires a 64-bit version of Windows." Condition="NativeMachine <> 332" />
|
|
|
|
<Variable Name="InstallFolder" Type="formatted" Value="[ProgramFiles6432Folder]Moonlight Game Streaming" />
|
|
|
|
<!-- Define "Add desktop shortcut" -checkbox's state by defining a variable
|
|
which has same name as the checkbox has. Value 1 means that checkbox
|
|
is checked, 0 means that is unchecked-->
|
|
<!-- Set checkbox's state as checked by default -->
|
|
<Variable Name="AddDesktopShortcutCheckbox" Type="numeric" Value="1" />
|
|
<!-- Get checkbox's state from registry if present. The registry value
|
|
"DesktopShortcutInstallState" is set in Product.wxs. -->
|
|
<util:RegistrySearch Variable="HasDesktopShortcutInstallStateRegKey" Root="HKCU" Key="Software\Moonlight Game Streaming Project" Value="DesktopShortcutInstallState" Result="exists" />
|
|
<util:RegistrySearch Variable="AddDesktopShortcutCheckbox" Root="HKCU" Key="Software\Moonlight Game Streaming Project" Value="DesktopShortcutInstallState" Condition="HasDesktopShortcutInstallStateRegKey" />
|
|
|
|
<util:ProductSearch Id="VCREDIST_14_x64"
|
|
UpgradeCode="$(var.VCREDIST_X64_UPGRADE_CODE)"
|
|
Result="version"
|
|
Variable="VCREDIST_14_x64" />
|
|
|
|
<util:ProductSearch Id="VCREDIST_14_ARM64"
|
|
UpgradeCode="$(var.VCREDIST_ARM64_UPGRADE_CODE)"
|
|
Result="version"
|
|
Variable="VCREDIST_14_ARM64" />
|
|
|
|
<BootstrapperApplication>
|
|
<bal:WixStandardBootstrapperApplication ShowVersion="yes"
|
|
LicenseFile="license.rtf"
|
|
LogoFile="..\..\app\moonlight_wix.png"
|
|
LaunchTarget="[InstallFolder]\Moonlight.exe"
|
|
ThemeFile="RtfTheme.xml"
|
|
Theme="rtfLicense" />
|
|
<Payload Name="Moonlight.ico" SourceFile="..\..\app\moonlight.ico" Compressed="yes" />
|
|
</BootstrapperApplication>
|
|
|
|
<Chain>
|
|
<ExePackage Cache="remove"
|
|
PerMachine="yes"
|
|
Permanent="yes"
|
|
Vital="yes"
|
|
InstallCondition="(VersionNT64 AND NOT NativeMachine) OR (NativeMachine = 34404)"
|
|
DetectCondition="VCREDIST_14_x64 >= v$(var.VCREDIST_VER)"
|
|
InstallArguments="/install /quiet /norestart">
|
|
|
|
<ExePackagePayload Description="Microsoft Visual C++ 2015-2022 Redistributable - x64"
|
|
ProductName="Microsoft Visual C++ 2015-2022 Redistributable - x64"
|
|
Size="$(var.VCREDIST_X64_SIZE)"
|
|
Version="$(var.VCREDIST_VER)"
|
|
Hash="$(var.VCREDIST_X64_SHA512)"
|
|
Name="VC_redist.x64.exe"
|
|
DownloadUrl="$(var.VCREDIST_X64_URL)" />
|
|
|
|
<!-- Newer version installed is fine -->
|
|
<ExitCode Value="1638" Behavior="success" />
|
|
</ExePackage>
|
|
|
|
<ExePackage Cache="remove"
|
|
PerMachine="yes"
|
|
Permanent="yes"
|
|
Vital="yes"
|
|
InstallCondition="NativeMachine = 43620"
|
|
DetectCondition="VCREDIST_14_ARM64 >= v$(var.VCREDIST_VER)"
|
|
InstallArguments="/install /quiet /norestart">
|
|
|
|
<ExePackagePayload Description="Microsoft Visual C++ 2015-2022 Redistributable - ARM64"
|
|
ProductName="Microsoft Visual C++ 2015-2022 Redistributable - ARM64"
|
|
Size="$(var.VCREDIST_ARM64_SIZE)"
|
|
Version="$(var.VCREDIST_VER)"
|
|
Hash="$(var.VCREDIST_ARM64_SHA512)"
|
|
Name="VC_redist.arm64.exe"
|
|
DownloadUrl="$(var.VCREDIST_ARM64_URL)" />
|
|
|
|
<!-- Newer version installed is fine -->
|
|
<ExitCode Value="1638" Behavior="success" />
|
|
</ExePackage>
|
|
|
|
<MsiPackage Id="Moonlight_x64"
|
|
SourceFile="$(env.BUILD_ROOT)\build-x64-$(env.BUILD_CONFIG)\Moonlight.msi"
|
|
Name="Moonlight_x64.msi"
|
|
InstallCondition="(VersionNT64 AND NOT NativeMachine) OR (NativeMachine = 34404)"
|
|
Vital="yes">
|
|
<MsiProperty Name="INSTALLFOLDER" Value="[InstallFolder]" />
|
|
<MsiProperty Name="ADDDESKTOPSHORTCUT" Value="[AddDesktopShortcutCheckbox]" />
|
|
</MsiPackage>
|
|
|
|
<MsiPackage Id="Moonlight_arm64"
|
|
SourceFile="$(env.BUILD_ROOT)\build-arm64-$(env.BUILD_CONFIG)\Moonlight.msi"
|
|
Name="Moonlight_arm64.msi"
|
|
InstallCondition="NativeMachine = 43620"
|
|
Vital="yes">
|
|
<MsiProperty Name="INSTALLFOLDER" Value="[InstallFolder]" />
|
|
<MsiProperty Name="ADDDESKTOPSHORTCUT" Value="[AddDesktopShortcutCheckbox]" />
|
|
</MsiPackage>
|
|
</Chain>
|
|
|
|
</Bundle>
|
|
</Wix>
|