Skip to content

Commit

Permalink
build: Fix MSI to reuse InstallDir set in registry on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard committed Apr 2, 2024
1 parent a2476da commit ff412fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ packaging:
even if LOCAL was not used or it was set empty in installer UI
* Enhanced CVE-2024-28241 fix to only apply folder security if install folder and
eventually LOCAL folder are subfolders of system "Program Files" folder
* Fix MSI to reuse InstallDir set in registry on upgrade

1.7.2 Mon, 25 Mar 2024

Expand Down
2 changes: 2 additions & 0 deletions contrib/windows/packaging/MSI_main-v2.wxs.tt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
<Property Id="UPGRADEDIR" Secure="yes">
<RegistrySearch Id="InstallDir" Root="HKLM" Key="[%agent_regpath%]\Installer" Name="InstallDir" Type="raw" />
</Property>
<!-- Reuse InstallDir set in registry if possible -->
<SetProperty Id="INSTALLDIR" After="AppSearch" Value="[UPGRADEDIR]"><![CDATA[INSTALLDIR="" AND UPGRADEDIR<>"" AND CMDLINE_CONFIG<>"reset"]]></SetProperty>

<Property Id="QUICKINSTALL" Secure="yes">
<RegistrySearch Id="QuickInstall" Root="HKLM" Key="[%agent_regpath%]\Installer" Name="QuickInstall" Type="raw" />
Expand Down

0 comments on commit ff412fa

Please sign in to comment.