Escape trailing slash in install directory location so the closing quote is not escaped

Fixes #11416 [NO NEW TESTS NEEDED]

Signed-off-by: Jason Greene <jason.greene@redhat.com>
This commit is contained in:
Jason T. Greene 2021-12-05 17:48:31 -06:00
parent e79c47bc0c
commit 527fd3c0fa
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@
</Directory> </Directory>
<Property Id="setx" Value="setx.exe"/> <Property Id="setx" Value="setx.exe"/>
<CustomAction Id="ChangePath" ExeCommand="PATH &quot;%PATH%;[INSTALLDIR]&quot;" Property="setx" Execute="deferred" Impersonate="yes" Return="check"/> <!-- Directory table entries have a trailing slash, so an extra backslash is needed to prevent escaping the quote -->
<CustomAction Id="ChangePath" ExeCommand="PATH &quot;%PATH%;[INSTALLDIR]\&quot;" Property="setx" Execute="deferred" Impersonate="yes" Return="check"/>
<Feature Id="Complete" Level="1"> <Feature Id="Complete" Level="1">
<ComponentRef Id="INSTALLDIR_Component"/> <ComponentRef Id="INSTALLDIR_Component"/>