fix one drive desktop? (#11)

This commit is contained in:
Mylloon 2024-04-04 11:41:02 +02:00
parent 5f8eaf36fb
commit 3be79cfc0f
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -32,7 +32,8 @@ if ($Host.UI.PromptForChoice(
[System.Management.Automation.Host.ChoiceDescription]::new("&No", "Skip the shortcut creation.")
), 1) -eq 0) {
$WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$env:HOMEPATH\Desktop\DSR.lnk")
$Desktop = [Environment]::GetFolderPath("Desktop")
$Shortcut = $WshShell.CreateShortcut("$Desktop\DSR.lnk")
$Shortcut.TargetPath = "$env:LOCALAPPDATA\DSR\dsr.exe"
$Shortcut.Save()
}