Fix path to "Desktop" folder to work correctly with different locales on Windows XP

This commit is contained in:
Azim Muradov 2026-01-13 00:27:57 +03:00
parent c7aac1edcf
commit 0ac7aa61f8

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"