diff --git a/windows/templates/product.wxs b/windows/templates/product.wxs
index d020c2162..10198654b 100644
--- a/windows/templates/product.wxs
+++ b/windows/templates/product.wxs
@@ -57,6 +57,13 @@
+
+
+
+
+
+
+
@@ -208,13 +215,6 @@
-
-
-
-
{{range $i, $h := .Hooks}}
@@ -234,12 +234,11 @@
- = 603 OR VersionNT64 >= 603) AND NOT Installed AND NOT REMOVE AND ENABLEMANAGEMENT AND NOT WIX_UPGRADE_DETECTED]]>
+ = 603 OR VersionNT64 >= 603) AND NOT Installed AND NOT REMOVE AND ENABLEMANAGEMENT AND NOT WIX_UPGRADE_DETECTED AND (not MANAGEREXISTS or CLEAN)]]>
- = 603 OR VersionNT64 >= 603) AND NOT Installed AND NOT REMOVE AND ENABLEMANAGEMENT AND NOT WIX_UPGRADE_DETECTED]]>
+ = 603 OR VersionNT64 >= 603) AND NOT Installed AND NOT REMOVE AND ENABLEMANAGEMENT AND NOT WIX_UPGRADE_DETECTED AND (not MANAGEREXISTS or CLEAN)]]>
-