├── README.md └── Add-Store.cmd /README.md: -------------------------------------------------------------------------------- 1 | # Add Store to Windows 10/11 2 | I actually recommend [ThioJoe Windows Sandbox Tools Microsoft Store install script](https://github.com/ThioJoe/Windows-Sandbox-Tools/blob/main/Installer%20Scripts/Install-Microsoft-Store.ps1). It way better than this and use Windows Update API which is alway up to date when you run it (it doesn't have AppInstaller and Xbox Identity Provider tho) 3 | If you still want to use this, download latest version [here](https://github.com/QuangVNMC/LTSC-Add-Microsoft-Store/releases/tag/Bruh) 4 | For Windows 10 Enterprise LTSC 2019 5 | [Download](https://github.com/lixuy/LTSC-Add-MicrosoftStore/archive/2019.zip) 6 | ## To install, run Add-Store.cmd as Administrator 7 | ## Addition troubleshooting 8 | >Right click start 9 | Select Run 10 | Type in: WSReset.exe 11 | This will clear the cache if needed. 12 | -------------------------------------------------------------------------------- /Add-Store.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | for /f "tokens=6 delims=[]. " %%G in ('ver') do if %%G lss 16299 goto :version 3 | %windir%\system32\reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || goto :uac 4 | setlocal enableextensions 5 | if /i "%PROCESSOR_ARCHITECTURE%" equ "AMD64" (set "arch=x64") else (set "arch=x86") 6 | cd /d "%~dp0" 7 | 8 | if not exist "*WindowsStore*.*bundle" goto :nofiles 9 | 10 | for /f %%i in ('dir /b *WindowsStore*.*bundle 2^>nul') do set "Store=%%i" 11 | for /f %%i in ('dir /b *NET.Native.Framework*2.2*.* 2^>nul ^| find /i "x64"') do set "Framework6X64=%%i" 12 | for /f %%i in ('dir /b *NET.Native.Framework*2.2*.* 2^>nul ^| find /i "x86"') do set "Framework6X86=%%i" 13 | for /f %%i in ('dir /b *NET.Native.Runtime*2.2*.* 2^>nul ^| find /i "x64"') do set "Runtime6X64=%%i" 14 | for /f %%i in ('dir /b *NET.Native.Runtime*2.2*.* 2^>nul ^| find /i "x86"') do set "Runtime6X86=%%i" 15 | for /f %%i in ('dir /b *VCLibs*140*.* 2^>nul ^| find /i "x64"') do set "VCLibsX64=%%i" 16 | for /f %%i in ('dir /b *VCLibs*140*.* 2^>nul ^| find /i "x86"') do set "VCLibsX86=%%i" 17 | for /f %%i in ('dir /b *VCLibs.140.00.UWP*.* 2^>nul ^| find /i "x64"') do set "VCLibsUWPX64=%%i" 18 | for /f %%i in ('dir /b *VCLibs.140.00.UWP*.* 2^>nul ^| find /i "x86"') do set "VCLibsUWPX86=%%i" 19 | for /f %%i in ('dir /b *UI.Xaml*.* 2^>nul ^| find /i "x64"') do set "UIXamlX64=%%i" 20 | for /f %%i in ('dir /b *UI.Xaml*.* 2^>nul ^| find /i "x86"') do set "UIXamlX86=%%i" 21 | 22 | 23 | if exist "*DesktopAppInstaller*.*bundle" ( 24 | for /f %%i in ('dir /b *DesktopAppInstaller*.*bundle 2^>nul') do set "AppInstaller=%%i" 25 | ) 26 | if exist "*XboxIdentityProvider*.*bundle" ( 27 | for /f %%i in ('dir /b *XboxIdentityProvider*.*bundle 2^>nul') do set "XboxIdentity=%%i" 28 | ) 29 | 30 | if /i %arch%==x64 ( 31 | set "DepStore=%VCLibsX64%,%VCLibsX86%,%VCLibsUWPX64%,"%VCLibsUWPX86%",%Framework6X64%,%Framework6X86%,%Runtime6X64%,%Runtime6X86%,%UIXamlX64%,%UIXamlX86%" 32 | set "DepPurchase=%VCLibsX64%,%VCLibsX86%,%Framework6X64%,%Framework6X86%,%Runtime6X64%,%Runtime6X86%" 33 | set "DepXbox=%VCLibsX64%,%VCLibsX86%,%Framework6X64%,%Framework6X86%,%Runtime6X64%,%Runtime6X86%" 34 | set "DepInstaller=%VCLibsX64%,%VCLibsX86%" 35 | ) else ( 36 | set "DepStore=%VCLibsX86%,"VCLibsUWPX86",%Framework6X86%,%Framework7X86%,%Runtime6X86%,%UIXamlX86%" 37 | set "DepPurchase=%VCLibsX86%,%Framework6X86%,%Runtime6X86%" 38 | set "DepXbox=%VCLibsX86%,%Framework6X86%,%Runtime6X86%" 39 | set "DepInstaller=%VCLibsX86%" 40 | ) 41 | 42 | for %%i in (%DepStore%) do ( 43 | if not exist "%%i" goto :nofiles 44 | ) 45 | 46 | set "PScommand=PowerShell -NoLogo -NoProfile -NonInteractive -InputFormat None -ExecutionPolicy Bypass" 47 | 48 | echo. 49 | echo ============================================================ 50 | echo Adding Microsoft Store 51 | echo ============================================================ 52 | echo. 53 | 1>nul 2>nul %PScommand% Add-appxProvisionedPackage -Online -PackagePath %Store% -DependencyPackagePath %DepStore% -LicensePath Microsoft.WindowsStore_8wekyb3d8bbwe.xml 54 | for %%i in (%DepStore%) do ( 55 | %PScommand% Add-appxPackage -Path %%i 56 | ) 57 | %PScommand% Add-appxPackage -Path %Store% 58 | 59 | if defined PurchaseApp ( 60 | echo. 61 | echo ============================================================ 62 | echo Adding Store Purchase App 63 | echo ============================================================ 64 | echo. 65 | 1>nul 2>nul %PScommand% Add-appxProvisionedPackage -Online -PackagePath %PurchaseApp% -DependencyPackagePath %DepPurchase% -LicensePath Microsoft.StorePurchaseApp_8wekyb3d8bbwe.xml 66 | %PScommand% Add-appxPackage -Path %PurchaseApp% 67 | ) 68 | if defined AppInstaller ( 69 | echo. 70 | echo ============================================================ 71 | echo Adding App Installer 72 | echo ============================================================ 73 | echo. 74 | 1>nul 2>nul %PScommand% Add-appxProvisionedPackage -Online -PackagePath %AppInstaller% -DependencyPackagePath %DepInstaller% -LicensePath Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.xml 75 | %PScommand% Add-appxPackage -Path %AppInstaller% 76 | ) 77 | if defined XboxIdentity ( 78 | echo. 79 | echo ============================================================ 80 | echo Adding Xbox Identity Provider 81 | echo ============================================================ 82 | echo. 83 | 1>nul 2>nul %PScommand% Add-appxProvisionedPackage -Online -PackagePath %XboxIdentity% -DependencyPackagePath %DepXbox% -LicensePath Microsoft.XboxIdentityProvider_8wekyb3d8bbwe.xml 84 | %PScommand% Add-appxPackage -Path %XboxIdentity% 85 | ) 86 | goto :fin 87 | 88 | :uac 89 | echo. 90 | echo ============================================================ 91 | echo Error: Run the script as administrator 92 | echo ============================================================ 93 | echo. 94 | echo. 95 | echo Press any key to Exit 96 | pause >nul 97 | exit 98 | 99 | :version 100 | echo. 101 | echo ============================================================ 102 | echo Error: This pack is for Windows 10 version 1709 and later 103 | echo ============================================================ 104 | echo. 105 | echo. 106 | echo Press any key to Exit 107 | pause >nul 108 | exit 109 | 110 | :nofiles 111 | echo. 112 | echo ============================================================ 113 | echo Error: Required files are missing in the current directory 114 | echo ============================================================ 115 | echo. 116 | echo. 117 | echo Press any key to Exit 118 | pause >nul 119 | exit 120 | 121 | :fin 122 | echo. 123 | echo ============================================================ 124 | echo Done 125 | echo ============================================================ 126 | echo. 127 | echo Press any Key to Exit. 128 | pause >nul 129 | exit 130 | --------------------------------------------------------------------------------