2023-01-01 18:27:29 +01:00
|
|
|
@echo off
|
|
|
|
set APPSFOLDER=apps\storeapps
|
|
|
|
set TOOLS=C:\tools
|
|
|
|
|
|
|
|
IF %1.==. GOTO USAGE
|
|
|
|
|
|
|
|
rem folder present ?
|
2023-01-01 19:42:32 +01:00
|
|
|
IF EXIST %TOOLS%\%APPSFOLDER% (
|
2023-01-01 18:27:29 +01:00
|
|
|
FOR %%F in (%TOOLS%\%APPSFOLDER%\*%1*.appxbundle, %TOOLS%\%APPSFOLDER%\*%1*.appx) do (
|
|
|
|
echo processing ... [ %%F ]
|
|
|
|
dism /Online /Add-ProvisionedAppxPackage /PackagePath:"%%F" /SkipLicense
|
|
|
|
)
|
|
|
|
) else (
|
|
|
|
echo WARNING: [ %APPSFOLDER% ] does not exist, cannot install ...
|
|
|
|
)
|
|
|
|
GOTO END
|
|
|
|
|
|
|
|
:USAGE
|
|
|
|
echo "usage: %0 <Appname>"
|
|
|
|
|
|
|
|
:END
|