diff --git a/wix/Moonlight/Product.wxs b/wix/Moonlight/Product.wxs index cee32c0a..c17905f8 100644 --- a/wix/Moonlight/Product.wxs +++ b/wix/Moonlight/Product.wxs @@ -8,77 +8,77 @@ - + Language="1033" + Version="!(bind.fileVersion.MoonlightExe)" + Manufacturer="Moonlight Game Streaming Project" + UpgradeCode="5c09f94e-f809-4c6a-9b7b-597c99f041fe"> + + Root="HKLM" + Key="System\CurrentControlSet\Services\MpsSvc" + Name="Start" + Type="raw" /> + Message="Setup cannot proceed because the Windows Firewall service has been improperly disabled or stopped. You must start the Windows Firewall service (MpsSvc) to continue. If you would like to disable Windows Firewall properly, use the Windows Firewall options in Control Panel." /> + Directory="ProgramFiles6432Folder" + ExeCommand="reg.exe delete "HKCU\Software\Moonlight Game Streaming Project" /f" + Execute="deferred" + Return="ignore" + Impersonate="yes" /> + Before="InstallFinalize" + Condition="Installed AND REMOVE~="ALL" AND NOT UPGRADINGPRODUCTCODE" /> + Name="$(var.ShortcutName)" + Description="$(var.ShortcutDesc)" + Target="[#MoonlightExe]" + Directory="ApplicationProgramsFolder" + WorkingDirectory="INSTALLFOLDER" /> + Directory="ApplicationProgramsFolder" + On="uninstall" /> + On="uninstall" + Property="APPDATAFOLDER" /> + Key="Software\Moonlight Game Streaming Project" + Name="Installed" + Type="integer" + Value="1" + KeyPath="yes" /> + Name="$(var.ShortcutName)" + Description="$(var.ShortcutDesc)" + Target="[#MoonlightExe]" + Directory="DesktopFolder" + WorkingDirectory="INSTALLFOLDER" /> + Directory="DesktopFolder" + On="uninstall" /> + Key="Software\Moonlight Game Streaming Project" + Name="DesktopShortcutInstalled" + Type="integer" + Value="1" + KeyPath="yes" /> + Key="Software\Moonlight Game Streaming Project" + Name="DesktopShortcutInstallState" + Type="integer" + Value="[ADDDESKTOPSHORTCUT]" + KeyPath="yes" /> + KeyPath="yes" + Checksum="yes" + Source="$(var.BuildDir)\app\$(var.Configuration)\Moonlight.exe"> + Scope="any" + Name="$(var.FullName)" /> @@ -113,7 +113,7 @@ - + diff --git a/wix/MoonlightSetup/Bundle.wxs b/wix/MoonlightSetup/Bundle.wxs index 0731494d..8a933341 100644 --- a/wix/MoonlightSetup/Bundle.wxs +++ b/wix/MoonlightSetup/Bundle.wxs @@ -16,13 +16,13 @@ + 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"> @@ -39,65 +39,65 @@ + UpgradeCode="$(var.VCREDIST_X86_UPGRADE_CODE)" + Result="version" + Variable="VCREDIST_14_x86" /> + UpgradeCode="$(var.VCREDIST_X64_UPGRADE_CODE)" + Result="version" + Variable="VCREDIST_14_x64" /> + UpgradeCode="$(var.VCREDIST_ARM64_UPGRADE_CODE)" + Result="version" + Variable="VCREDIST_14_ARM64" /> + LicenseFile="license.rtf" + LogoFile="..\..\app\moonlight_wix.png" + LaunchTarget="[InstallFolder]\Moonlight.exe" + ThemeFile="RtfTheme.xml" + Theme="rtfLicense" /> - + PerMachine="yes" + Permanent="yes" + Vital="yes" + InstallCondition="(NOT VersionNT64 AND NOT NativeMachine) OR (NativeMachine = 332)" + DetectCondition="VCREDIST_14_x86 >= v$(var.VCREDIST_VER)" + InstallArguments="/install /quiet /norestart"> + + ProductName="Microsoft Visual C++ 2015-2022 Redistributable - x86" + Size="$(var.VCREDIST_X86_SIZE)" + Version="$(var.VCREDIST_VER)" + Hash="$(var.VCREDIST_X86_SHA512)" + Name="VC_redist.x86.exe" + DownloadUrl="$(var.VCREDIST_X86_URL)" /> - + DetectCondition="VCREDIST_14_x64 >= v$(var.VCREDIST_VER)" + InstallArguments="/install /quiet /norestart"> + + 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)" /> @@ -105,20 +105,20 @@ + DetectCondition="VCREDIST_14_ARM64 >= v$(var.VCREDIST_VER)" + InstallArguments="/install /quiet /norestart"> + 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)" /> @@ -126,29 +126,29 @@ + SourceFile="$(env.BUILD_ROOT)\build-x86-$(env.BUILD_CONFIG)\Moonlight.msi" + Name="Moonlight_x86.msi" + InstallCondition="(NOT VersionNT64 AND NOT NativeMachine) OR (NativeMachine = 332)" + Vital="yes"> + Vital="yes"> + Vital="yes">