fix: Path to "Desktop" folder on Windows XP (#1625)

Fix path to "Desktop" folder to work correctly with different locales on Windows XP.
This commit is contained in:
Azim Muradov 2026-01-13 15:43:48 +03:00 committed by GitHub
parent c7aac1edcf
commit 588969ae5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1766,7 +1766,7 @@ prepareInstall() {
echo ""
echo "Call Domain.MoveHere(LocalAdminADsPath, \"$username\")"
echo ""
echo "Set oLink = WshShell.CreateShortcut(WshShell.ExpandEnvironmentStrings(\"%userprofile%\\Desktop\\Shared.lnk\"))"
echo "Set oLink = WshShell.CreateShortcut(WshShell.SpecialFolders(\"Desktop\") & \"\\Shared.lnk\")"
echo "With oLink"
echo " .TargetPath = \"\\\\host.lan\\Data\""
echo " .Save"