mirror of
https://github.com/modernw/App-Installer-For-Windows-8.x-Reset.git
synced 2026-04-23 03:20:25 +10:00
Update.
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
15
Tools/Dependencies/depsinstaller/run.bat
Normal file
15
Tools/Dependencies/depsinstaller/run.bat
Normal file
@@ -0,0 +1,15 @@
|
||||
@echo off
|
||||
if exist "%SystemRoot%\SysWOW64" path %path%;%windir%\SysNative;%SystemRoot%\SysWOW64;%~dp0
|
||||
bcdedit >nul
|
||||
if '%errorlevel%' NEQ '0' (goto UACPrompt) else (goto UACAdmin)
|
||||
:UACPrompt
|
||||
%1 start "" mshta vbscript:createobject("shell.application").shellexecute("""%~0""","::",,"runas",1)(window.close)&exit
|
||||
exit /B
|
||||
:UACAdmin
|
||||
cd /d "%~dp0"
|
||||
for /r %%i in (*.appx) do powershell add-appxpackage "%%i"
|
||||
for /r %%i in (*.appxbundle) do powershell add-appxpackage "%%i"
|
||||
for /r %%i in (*.msix) do powershell add-appxpackage "%%i"
|
||||
for /r %%i in (*.msixbundle) do powershell add-appxpackage "%%i"
|
||||
for /r %%i in (*.appinstaller) do powershell add-appxpackage "%%i"
|
||||
exit /b
|
||||
Reference in New Issue
Block a user