feat: Create desktop shortcut to shared folder

This commit is contained in:
Kroese 2025-10-03 00:12:18 +02:00 committed by GitHub
parent 4871a1e61b
commit 6c3a876049
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1777,11 +1777,18 @@ prepareInstall() {
echo " Set oFile = Nothing" echo " Set oFile = Nothing"
echo "End With" echo "End With"
echo "" echo ""
} | unix2dos > "$dir/\$OEM\$/admin.vbs" echo "Set oLink = WshShell.CreateShortcut(WshShell.ExpandEnvironmentStrings(\"%userprofile%\\Desktop\\Shared.lnk\")"
echo "With oLink"
echo " .TargetPath = \"\\\\host.lan\\Data\""
echo " .Save"
echo "End With"
echo "Set oLink = Nothing"
echo ""
} | unix2dos > "$dir/\$OEM\$/install.vbs"
{ echo "[COMMANDS]" { echo "[COMMANDS]"
echo "\"REGEDIT /s install.reg\"" echo "\"REGEDIT /s install.reg\""
echo "\"Wscript admin.vbs\"" echo "\"Wscript install.vbs\""
echo "" echo ""
} | unix2dos > "$dir/\$OEM\$/cmdlines.txt" } | unix2dos > "$dir/\$OEM\$/cmdlines.txt"