diff --git a/tools/install-apps.cmd b/tools/install-apps.cmd new file mode 100644 index 0000000..64ece05 --- /dev/null +++ b/tools/install-apps.cmd @@ -0,0 +1,21 @@ +@echo off +set APPSFOLDER=apps\storeapps +set TOOLS=C:\tools + +IF %1.==. GOTO USAGE + +rem folder present ? +IF EXIST %APPSFOLDER% ( + 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 " + +:END