From b5965d763c514c7b175f5675a83ad94eeec898c5 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 27 Jul 2018 00:13:02 -0700 Subject: [PATCH] Create desktop shortcut, detect various error conditions to fail installation, and only install VCRedist if it's not already present --- wix/Moonlight/Product.wxs | 46 +++++++++++++++-------- wix/MoonlightSetup/Bundle.wxs | 37 ++++++++++++++++-- wix/MoonlightSetup/MoonlightSetup.wixproj | 4 ++ 3 files changed, 68 insertions(+), 19 deletions(-) diff --git a/wix/Moonlight/Product.wxs b/wix/Moonlight/Product.wxs index 299e5873..5f135a2b 100644 --- a/wix/Moonlight/Product.wxs +++ b/wix/Moonlight/Product.wxs @@ -1,10 +1,17 @@ + + + + + + + + - + - + @@ -42,31 +50,37 @@ Installed AND REMOVE~="ALL" AND NOT UPGRADINGPRODUCTCODE - - - - - - - + + + + + + + + Name="$(var.FullName)" /> - + diff --git a/wix/MoonlightSetup/Bundle.wxs b/wix/MoonlightSetup/Bundle.wxs index ff7d0154..2abf4d41 100644 --- a/wix/MoonlightSetup/Bundle.wxs +++ b/wix/MoonlightSetup/Bundle.wxs @@ -1,7 +1,8 @@ + xmlns:bal="http://schemas.microsoft.com/wix/BalExtension" + xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> - + + = v6.1]]> + + + + + + + + + + + + + + VersionNT64 + + + + + + + + + LaunchTarget="[InstallFolder]\Moonlight.exe" /> $(WixExtDir)\WixBalExtension.dll WixBalExtension + + $(WixExtDir)\WixUtilExtension.dll + WixUtilExtension +