cleanup after finished (Fix-AutodeskProductLicensing.ps1)

add service installation (Install-Wireguard.ps1)
This commit is contained in:
2020-12-23 08:16:37 -05:00
parent 226b87b465
commit ae42120f1f
2 changed files with 17 additions and 1 deletions
+5 -1
View File
@@ -8,7 +8,11 @@ If ( IsAdmin )
Else { $URL = 'https://download.wireguard.com/windows-client/wireguard-x86-latest.msi' }
## Install package
Try { Start-Process "msiexec.exe" -ArgumentList "/i ${URL} /qn /norestart DO_NOT_LAUNCH=1" -Wait }
Try { Start-Process "msiexec.exe" -ArgumentList "/i ${URL} /qn /norestart DO_NOT_LAUNCH=1" -Wait -ErrorAction Stop }
Catch { LogErr $_.Exception.Message ; Exit }
## Install manager service
Try { Start-Process "wireguard.exe" -ArgumentList '/installmanagerservice' -Wait -ErrorAction SilentlyContinue }
Catch { LogErr $_.Exception.Message }
## Create shortcut on Public desktop