aarondandy avatar aarondandy committed bd07aaa

today I learned MSI only support 3 version parts, not 4

Comments (0)

Files changed (3)

build/YouCantSpell.Installer.v61/Product.wxs

 <?xml version="1.0" encoding="UTF-8"?>
 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
-	<Product
+
+  <?define UpgradeCode="b61c54df-ef38-4534-a99b-9b8887918ef2"?>
+  <?define Manufacturer="Aaron Dandy"?>
+
+  <Product
     Id="*"
     Name="You Can't Spell For ReSharper 6.1 ($(var.CoreAsmVersion))"
     Language="1033"
     Version="$(var.CoreAsmVersion)"
-    Manufacturer="Aaron Dandy"
-    UpgradeCode="b61c54df-ef38-4534-a99b-9b8887918ef2"
+    Manufacturer="$(var.Manufacturer)"
+    UpgradeCode="$(var.UpgradeCode)"
   >
     <Package
       Description="A ReSharper Spell Check Plug-in."
       InstallerVersion="200"
       Compressed="yes"
       InstallScope="perUser"
+      Manufacturer="$(var.Manufacturer)"
     />
 
-    <Property Id="MSIFASTINSTALL" Value="7" />
-    <Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
-    <Upgrade Id="b61c54df-ef38-4534-a99b-9b8887918ef2">
-      <UpgradeVersion Minimum="0.0.1"
-							IncludeMinimum="yes"
-							Maximum="3.0.0"
-							IncludeMaximum="no"
-							Property="PREVIOUSVERSIONSINSTALLED" />
-    </Upgrade>
-
-    <InstallExecuteSequence>
-      <RemoveExistingProducts After="InstallInitialize" />
-    </InstallExecuteSequence>
+    <MajorUpgrade DowngradeErrorMessage="Newer version detected." AllowSameVersionUpgrades="yes" />
 
     <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" CompressionLevel="high" />
 

build/YouCantSpell.Installer.v70/Product.wxs

 <?xml version="1.0" encoding="UTF-8"?>
 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
-	<Product
+
+  <?define UpgradeCode="d2068791-eb4f-4f37-bbec-40ef1078d028"?>
+  <?define Manufacturer="Aaron Dandy"?>
+
+  <Product
     Id="*"
     Name="You Can't Spell For ReSharper 7.0 ($(var.CoreAsmVersion))"
     Language="1033"
     Version="$(var.CoreAsmVersion)"
-    Manufacturer="Aaron Dandy"
-    UpgradeCode="d2068791-eb4f-4f37-bbec-40ef1078d028"
+    Manufacturer="$(var.Manufacturer)"
+    UpgradeCode="$(var.UpgradeCode)"
   >
 		<Package
       Description="A ReSharper Spell Check Plug-in."
       InstallerVersion="200"
       Compressed="yes"
       InstallScope="perUser"
+      Manufacturer="$(var.Manufacturer)"
     />
 
-    <Property Id="MSIFASTINSTALL" Value="7" />
-    <Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
-    <Upgrade Id="d2068791-eb4f-4f37-bbec-40ef1078d028">
-      <UpgradeVersion Minimum="0.0.1"
-							IncludeMinimum="yes"
-							Maximum="3.0.0"
-							IncludeMaximum="no"
-							Property="PREVIOUSVERSIONSINSTALLED" />
-    </Upgrade>
-
-    <InstallExecuteSequence>
-      <RemoveExistingProducts After="InstallInitialize" />
-    </InstallExecuteSequence>
+    <MajorUpgrade DowngradeErrorMessage="Newer version detected." AllowSameVersionUpgrades="yes" />
     
 		<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" CompressionLevel="high" />
 

build/YouCantSpell.Installer.v71/Product.wxs

 <?xml version="1.0" encoding="UTF-8"?>
 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
-	<Product
+
+  <?define UpgradeCode="F412B889-7C45-4EAC-9CF0-9A32E55144F3"?>
+  <?define Manufacturer="Aaron Dandy"?>
+  
+  <Product
     Id="*"
     Name="You Can't Spell For ReSharper 7.1 ($(var.CoreAsmVersion))"
     Language="1033"
     Version="$(var.CoreAsmVersion)"
-    Manufacturer="Aaron Dandy"
-    UpgradeCode="F412B889-7C45-4EAC-9CF0-9A32E55144F3"
+    Manufacturer="$(var.Manufacturer)"
+    UpgradeCode="$(var.UpgradeCode)"
   >
 		<Package
       Description="A ReSharper Spell Check Plug-in."
       InstallerVersion="200"
       Compressed="yes"
       InstallScope="perUser"
+      Manufacturer="$(var.Manufacturer)"
     />
 
-    <Property Id="MSIFASTINSTALL" Value="7" />
-    <Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
-    <Upgrade Id="F412B889-7C45-4EAC-9CF0-9A32E55144F3">
-      <UpgradeVersion Minimum="0.0.1"
-							IncludeMinimum="yes"
-							Maximum="3.0.0"
-							IncludeMaximum="no"
-							Property="PREVIOUSVERSIONSINSTALLED" />
-    </Upgrade>
+    <MajorUpgrade DowngradeErrorMessage="Newer version detected." AllowSameVersionUpgrades="yes" />
 
-    <InstallExecuteSequence>
-      <RemoveExistingProducts After="InstallInitialize" />
-    </InstallExecuteSequence>
-    
 		<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" CompressionLevel="high" />
 
     <Property Id="RESHARPERDIRV71" Secure="yes">
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.