create desktop shortcut by default

This commit is contained in:
2020-12-22 13:23:44 -05:00
parent b896fb6325
commit 226b87b465
+2 -2
View File
@@ -1,5 +1,5 @@
## Create a desktop shortcut for WireGuard? ## Create a desktop shortcut for WireGuard?
$CreateDesktopShortcut = $false $CreateDesktopShortcut = $true
## Make sure we have an administrative token ## Make sure we have an administrative token
If ( IsAdmin ) If ( IsAdmin )
@@ -13,7 +13,7 @@ If ( IsAdmin )
## Create shortcut on Public desktop ## Create shortcut on Public desktop
If ( $CreateDesktopShortcut ) { If ( $CreateDesktopShortcut ) {
Create-Shortcut -Path "${Env:Public}\Desktop\WireGuard.LNK" -TargetPath "${Env:ProgramFiles}\WireGuard\wireguard.exe" -Description "WireGuard: Fast, Modern, Secure VPN Tunnel" Create-Shortcut -Path "${Env:Public}\Desktop\WireGuard VPN.LNK" -TargetPath "${Env:ProgramFiles}\WireGuard\wireguard.exe" -Description "WireGuard: Fast, Modern, Secure VPN Tunnel"
} }
} }
Else { LogMsg "Must be an administrator to install WireGuard" } Else { LogMsg "Must be an administrator to install WireGuard" }