From 3be79cfc0fe1e69be3942392dfa8e3a49c8512f1 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 4 Apr 2024 11:41:02 +0200 Subject: [PATCH] fix one drive desktop? (#11) --- install.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.ps1 b/install.ps1 index 9203581..b785e7f 100644 --- a/install.ps1 +++ b/install.ps1 @@ -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() }