[Installer]Fix My Documents on network drive install issue on machine installer (#32691)

* Defined PersonalFolder Directory only for User installations to avoid issues with My Documents on network drives

* Fixed spacing
This commit is contained in:
Ani 2024-05-08 13:28:57 +02:00 committed by GitHub
parent f9d16fdde2
commit b0e59d66b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -395,7 +395,9 @@
<Directory Id="ApplicationProgramsFolder" Name="PowerToys (Preview)"/>
</Directory>
<Directory Id="DesktopFolder" Name="Desktop" />
<Directory Id="PersonalFolder" Name="UserHomeDocuments" />
<?if $(var.PerUser) = "true" ?>
<Directory Id="PersonalFolder" Name="UserHomeDocuments" />
<?endif?>
</Directory>
</Fragment>
</Wix>