Fix MSI error messages (#58)
authorChristian Ullrich <chris@chrullrich.net>
Wed, 2 Oct 2024 10:51:49 +0000 (12:51 +0200)
committerGitHub <noreply@github.com>
Wed, 2 Oct 2024 10:51:49 +0000 (06:51 -0400)
Use the MSI property, not the WiX preprocessor variable (which was also
wrongly used as a property name) so the product name actually appears
in the error message instead of an empty string.

installer/psqlodbc_cpu.wxs

index 0486a5f9f1687367482b30e311bb0c14b6690ac1..b49b92c1536447897ed454d484f040b0f9a7db65 100644 (file)
     </Upgrade>
 
     <CustomAction Id='AlreadyUpdated'
-                Error="the same version of [$(var.PKGNAME)] is already installed" />
+                Error="the same version of [ProductName] is already installed" />
     <CustomAction Id='NoDowngrade'
-                Error="a new version of [$(var.PKGNAME)] is already installed" />
+                Error="a new version of [ProductName] is already installed" />
     <CustomAction Id='NoMinorUpgrade'
                 Error="REINSTALL unavailable. Major upgrade is needed." />
     <CustomAction Id='NoReinstall'