From 49a992dd2dffac3dc7bfb35da5c5e2d0b012c23c Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Tue, 26 Jan 2016 23:27:18 -0800 Subject: [PATCH] Remove unnecessary custom action Type 51 custom actions, SetProperty, are mostly benign but if possible custom actions should be avoided at all costs. Here we centralize the build type check in a single location and use preprocessor variable to remove the need for the custom action. --- packaging/windows/checkbuildtype.wxs | 7 +++++-- packaging/windows/dotnet.wxs | 3 --- packaging/windows/variables.wxi | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packaging/windows/checkbuildtype.wxs b/packaging/windows/checkbuildtype.wxs index 5d130b643..40e8c9cb4 100644 --- a/packaging/windows/checkbuildtype.wxs +++ b/packaging/windows/checkbuildtype.wxs @@ -1,11 +1,14 @@ - + - + + + NOT INSTALLEDCLIBUILDTYPE OR INSTALLEDCLIBUILDTYPE ~= "$(var.BuildType)" + \ No newline at end of file diff --git a/packaging/windows/dotnet.wxs b/packaging/windows/dotnet.wxs index 45e7dd54a..960de0896 100644 --- a/packaging/windows/dotnet.wxs +++ b/packaging/windows/dotnet.wxs @@ -27,9 +27,6 @@ - - - diff --git a/packaging/windows/variables.wxi b/packaging/windows/variables.wxi index c39cd526e..9466f0206 100644 --- a/packaging/windows/variables.wxi +++ b/packaging/windows/variables.wxi @@ -20,10 +20,10 @@ - - + + - +