瀏覽代碼

Do what the comment say and generate a new product ID each time

Tobias Hieta 9 年之前
父節點
當前提交
7a74a60069
共有 1 個文件被更改,包括 2 次插入8 次删除
  1. 2 8
      bundle/win/PMP.wxs

+ 2 - 8
bundle/win/PMP.wxs

@@ -9,19 +9,13 @@
 
   <?define FirstProductVersion=1.0.0 ?>
   <?define PlexMediaPlayerRegistryKey=Software\Plex, Inc.\Plex Media Player?>
-  
-    <Product Id="$(var.ProductUUID)"
-        Name="$(var.ProductName)"
-        Language="1033"
-        Version="$(var.Version)"
-        Manufacturer="Plex"
-        UpgradeCode="$(var.ProductUUID)">
 
     <!-- To keep things simple, the installer considers each new release
          a major upgrade, in which everything is uninstalled, then reinstalled
          To accomplish this, we change the Product Id on every build.
          However, the upgrade code remains the same on every build, to ensure
-         that newer installers recognize older installations -->
+         that newer installers recognize older installations -->  
+    <Product Id="*" Name="$(var.ProductName)" Language="1033" Version="$(var.Version)" Manufacturer="Plex" UpgradeCode="$(var.ProductUUID)">
 
     <!-- Package Ids change on every build, by definition -->
     <Package Id="*" Platform="x64" InstallerVersion="405" Compressed="yes" Description="$(var.ProductDesc)" InstallPrivileges="elevated"/>