From 0ac7aa61f8277c7119ca5a25a0b9df5c203cdfac Mon Sep 17 00:00:00 2001 From: Azim Muradov Date: Tue, 13 Jan 2026 00:27:57 +0300 Subject: [PATCH] Fix path to "Desktop" folder to work correctly with different locales on Windows XP --- src/define.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/define.sh b/src/define.sh index d8050cd..555f9d7 100644 --- a/src/define.sh +++ b/src/define.sh @@ -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"