2022-04-02 22:29:35 +00:00
|
|
|
@echo off
|
2022-10-21 14:51:06 +00:00
|
|
|
|
2022-10-27 23:20:21 +00:00
|
|
|
::::::::::::::::::::::::::::
|
|
|
|
:: Put WAU Arguments here ::
|
|
|
|
::::::::::::::::::::::::::::
|
|
|
|
|
2022-10-21 14:51:06 +00:00
|
|
|
SET arguments=-Uninstall
|
|
|
|
|
2022-10-27 23:20:21 +00:00
|
|
|
|
|
|
|
::::::::::::::::::::::::::::
|
|
|
|
:: Run Powershell Script ::
|
|
|
|
::::::::::::::::::::::::::::
|
|
|
|
|
2022-10-31 19:55:58 +00:00
|
|
|
SET PowershellCmd=Start-Process powershell.exe -NoNewWindow -Wait -Argument '-noprofile -executionpolicy bypass -file "%~dp0Winget-AutoUpdate-Install.ps1" %arguments%
|
2022-10-27 23:20:21 +00:00
|
|
|
powershell -Command "& {Get-ChildItem -Path '%~dp0' -Recurse | Unblock-File; %PowershellCmd%'}" -Verb RunAs
|