fix one drive desktop? (#11)
This commit is contained in:
parent
5f8eaf36fb
commit
3be79cfc0f
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,8 @@ if ($Host.UI.PromptForChoice(
|
||||||
[System.Management.Automation.Host.ChoiceDescription]::new("&No", "Skip the shortcut creation.")
|
[System.Management.Automation.Host.ChoiceDescription]::new("&No", "Skip the shortcut creation.")
|
||||||
), 1) -eq 0) {
|
), 1) -eq 0) {
|
||||||
$WshShell = New-Object -comObject WScript.Shell
|
$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.TargetPath = "$env:LOCALAPPDATA\DSR\dsr.exe"
|
||||||
$Shortcut.Save()
|
$Shortcut.Save()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue