diff --git a/Install-Wireguard.ps1 b/Install-Wireguard.ps1 index 911a7e5..ca5645b 100644 --- a/Install-Wireguard.ps1 +++ b/Install-Wireguard.ps1 @@ -1,3 +1,6 @@ +## Create a desktop shortcut for WireGuard? +$CreateDesktopShortcut = $false + ## Make sure we have an administrative token If ( IsAdmin ) { @@ -9,6 +12,8 @@ If ( IsAdmin ) Catch { LogErr $_.Exception.Message } ## Create shortcut on Public desktop - #Create-Shortcut -Path "${Env:Public}\Desktop\WireGuard.LNK" -TargetPath "${Env:ProgramFiles}\WireGuard\wireguard.exe" -Description "WireGuard: Fast, Modern, Secure VPN Tunnel" + If ( $CreateDesktopShortcut ) { + Create-Shortcut -Path "${Env:Public}\Desktop\WireGuard.LNK" -TargetPath "${Env:ProgramFiles}\WireGuard\wireguard.exe" -Description "WireGuard: Fast, Modern, Secure VPN Tunnel" + } } Else { LogMsg "Must be an administrator to install WireGuard" } \ No newline at end of file