Răsfoiți Sursa

Update WiX and fix WIX0242

error WIX0242: Invalid product version '999.0.0.0'. MSI product versions must have a major version less than 256, a minor version less than 256, and a build version less than 65536. The revision value is ignored but version labels and metadata are not allowed.
Daniel Chalmers 2 ani în urmă
părinte
comite
15383e9541
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      .github/workflows/deploy.yml
  2. 1 1
      Product.wxs

+ 1 - 1
.github/workflows/deploy.yml

@@ -18,7 +18,7 @@ jobs:
 
       - name: Create installer
         run: |
-          dotnet tool install --global wix --version 4.0.0-preview.0
+          dotnet tool install --global wix --version 4.0.0-preview.1
           wix build Product.wxs -o "publish/Install DesktopClock.msi"
 
       - name: Create GitHub release

+ 1 - 1
Product.wxs

@@ -33,7 +33,7 @@
 
     <Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
     <Upgrade Id="$(var.Guid)">
-      <UpgradeVersion Minimum="0.0.0.0" Maximum="999.0.0.0" Property="PREVIOUSVERSIONSINSTALLED" IncludeMinimum="yes" IncludeMaximum="no" />
+      <UpgradeVersion Minimum="0.0.0.0" Maximum="255.0.0.0" Property="PREVIOUSVERSIONSINSTALLED" IncludeMinimum="yes" IncludeMaximum="no" />
     </Upgrade>
 
     <CustomAction Id="RunMainExe" Directory="INSTALLFOLDER" ExeCommand="[INSTALLFOLDER]$(var.Name).exe" Execute="commit" Return="asyncNoWait" />