From 4be6597e37ead7461c45e9a39a028369b4472fea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Sat, 15 Oct 2022 17:53:17 +0100 Subject: [PATCH] Change MSI ProductVersion variable name --- UVtools.Installer/Code/Product.wxs | 13 +++++++------ UVtools.Installer/UVtools.Installer.wixproj | 20 ++++++++++---------- build/createRelease.ps1 | 2 +- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/UVtools.Installer/Code/Product.wxs b/UVtools.Installer/Code/Product.wxs index b094293..098623f 100644 --- a/UVtools.Installer/Code/Product.wxs +++ b/UVtools.Installer/Code/Product.wxs @@ -1,18 +1,18 @@ - + @@ -25,12 +25,13 @@ --> + + Minimum="$(var.ProductVersion)" IncludeMinimum="no" /> diff --git a/UVtools.Installer/UVtools.Installer.wixproj b/UVtools.Installer/UVtools.Installer.wixproj index 89cf6a7..e81f78c 100644 --- a/UVtools.Installer/UVtools.Installer.wixproj +++ b/UVtools.Installer/UVtools.Installer.wixproj @@ -10,12 +10,12 @@ false $(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets $(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets - - $([System.Text.RegularExpressions.Regex]::Match($(TF_BUILD_BUILDNUMBER), "\d+.\d+.\d+.\d+")) - - $([System.Text.RegularExpressions.Regex]::Match($(BUILD_BUILDNUMBER), "\d+.\d+.\d+.\d+")) - - 1.1.1 + + $([System.Text.RegularExpressions.Regex]::Match($(TF_BUILD_BUILDNUMBER), "\d+.\d+.\d+.\d+")) + + $([System.Text.RegularExpressions.Regex]::Match($(BUILD_BUILDNUMBER), "\d+.\d+.\d+.\d+")) + + 1.1.1 @@ -32,23 +32,23 @@ bin\$(Configuration)\ obj\$(Configuration)\ - Debug;MSIProductVersion=$(MSIProductVersion);HarvestPath=$(HarvestPath) + Debug;ProductVersion=$(ProductVersion);HarvestPath=$(HarvestPath) WixUIBannerBmp=Resources\Banner.jpg;WixUIDialogBmp=Resources\Dialog.jpg;WixUILicenseRtf=Resources\EULA.rtf bin\$(Configuration)\ obj\$(Configuration)\ - MSIProductVersion=$(MSIProductVersion);HarvestPath=$(HarvestPath) + ProductVersion=$(ProductVersion);HarvestPath=$(HarvestPath) WixUIBannerBmp=Resources\Banner.jpg;WixUIDialogBmp=Resources\Dialog.jpg;WixUILicenseRtf=Resources\EULA.rtf - Debug;MSIProductVersion=$(MSIProductVersion);HarvestPath=$(HarvestPath) + Debug;ProductVersion=$(ProductVersion);HarvestPath=$(HarvestPath) WixUIBannerBmp=Resources\Banner.jpg;WixUIDialogBmp=Resources\Dialog.jpg;WixUILicenseRtf=Resources\EULA.rtf bin\$(Platform)\$(Configuration)\ obj\$(Platform)\$(Configuration)\ - MSIProductVersion=$(MSIProductVersion);HarvestPath=$(HarvestPath) + ProductVersion=$(ProductVersion);HarvestPath=$(HarvestPath) WixUIBannerBmp=Resources\Banner.jpg;WixUIDialogBmp=Resources\Dialog.jpg;WixUILicenseRtf=Resources\EULA.rtf bin\$(Platform)\$(Configuration)\ obj\$(Platform)\$(Configuration)\ diff --git a/build/createRelease.ps1 b/build/createRelease.ps1 index d36fbc1..dadbcf1 100644 --- a/build/createRelease.ps1 +++ b/build/createRelease.ps1 @@ -231,7 +231,7 @@ $msbuild = $null foreach($path in $msbuildPaths) { if (Test-Path -Path $path -PathType Leaf) { - $msbuild = "`"$path`" /t:Build /p:Configuration=`"$buildWith`" /p:MSIProductVersion=`"$version`" /p:HarvestPath=`"$msiSourceFiles`"" + $msbuild = "`"$path`" /t:Build /p:Configuration=`"$buildWith`" /p:ProductVersion=`"$version`" /p:HarvestPath=`"$msiSourceFiles`"" break; } }