wingetautoupdate/uninstall.bat

16 lines
470 B
Batchfile
Raw Permalink Normal View History

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