@echo off |
| for /f "tokens=6 delims=[]. " %%G in ('ver') do if %%G lss 14393 goto :version |
| %windir%\system32\reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || goto :uac |
| setlocal enableextensions |
| if /i "%PROCESSOR_ARCHITECTURE%" equ "AMD64" (set "arch=x64") else (set "arch=x86") |
| cd /d "%~dp0" |
|
|
| if not exist "*WindowsStore*.appxbundle" goto :nofiles |
| if not exist "*WindowsStore*.xml" goto :nofiles |
|
|
| for /f %%i in ('"dir /b *WindowsStore*.appxbundle" 2^>nul') do set "Store=%%i" |
| for /f %%i in ('"dir /b *NET.Native.Framework*x64*1.6*.appx" 2^>nul') do set "Framework6X64=%%i" |
| for /f %%i in ('"dir /b *NET.Native.Framework*x86*1.6*.appx" 2^>nul') do set "Framework6X86=%%i" |
| for /f %%i in ('"dir /b *NET.Native.Framework*x64*1.3*.appx" 2^>nul') do set "Framework3X64=%%i" |
| for /f %%i in ('"dir /b *NET.Native.Framework*x86*1.3*.appx" 2^>nul') do set "Framework3X86=%%i" |
| for /f %%i in ('"dir /b *NET.Native.Runtime*x64*1.6*.appx" 2^>nul') do set "Runtime6X64=%%i" |
| for /f %%i in ('"dir /b *NET.Native.Runtime*x86*1.6*.appx" 2^>nul') do set "Runtime6X86=%%i" |
| for /f %%i in ('"dir /b *NET.Native.Runtime*x64*1.4*.appx" 2^>nul') do set "Runtime4X64=%%i" |
| for /f %%i in ('"dir /b *NET.Native.Runtime*x86*1.4*.appx" 2^>nul') do set "Runtime4X86=%%i" |
| for /f %%i in ('"dir /b *NET.Native.Runtime*x64*1.3*.appx" 2^>nul') do set "Runtime3X64=%%i" |
| for /f %%i in ('"dir /b *NET.Native.Runtime*x86*1.3*.appx" 2^>nul') do set "Runtime3X86=%%i" |
| for /f %%i in ('"dir /b *VCLibs*x64*.appx" 2^>nul') do set "VCLibsX64=%%i" |
| for /f %%i in ('"dir /b *VCLibs*x86*.appx" 2^>nul') do set "VCLibsX86=%%i" |
|
|
| if exist "*DesktopAppInstaller*.appxbundle" if exist "*DesktopAppInstaller*.xml" ( |
| for /f %%i in ('"dir /b *DesktopAppInstaller*.appxbundle" 2^>nul') do set "AppInstaller=%%i" |
| ) |
| if exist "*StorePurchaseApp*.appxbundle" if exist "*StorePurchaseApp*.xml" if exist "%Framework3X86%" if exist "%Runtime4X86%" ( |
| for /f %%i in ('"dir /b *StorePurchaseApp*.appxbundle" 2^>nul') do set "PurchaseApp=%%i" |
| ) |
| if exist "*XboxIdentityProvider*.appxbundle" if exist "*XboxIdentityProvider*.xml" if exist "%Framework3X86%" if exist "%Runtime3X86%" ( |
| for /f %%i in ('"dir /b *XboxIdentityProvider*.appxbundle" 2^>nul') do set "XboxIdentity=%%i" |
| ) |
|
|
| if /i %arch%==x64 ( |
| set "DepStore=%VCLibsX64%,%VCLibsX86%,%Framework6X64%,%Framework6X86%,%Runtime6X64%,%Runtime6X86%" |
| set |