Created
November 27, 2021 16:41
-
-
Save ekardon/008ff26403bc05fe8745e10f90b39de7 to your computer and use it in GitHub Desktop.
Appx installer with dependencies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Folder structure: | |
./ | |
├─ Main.appxbundle | |
├─ Dependencies/ | |
├─ Dependency1.appx | |
├─ Dependency2.appx | |
#> | |
$DependencyFolderPath = "Dependencies" | |
$AppxbundlePath = "." | |
$Dependencies = Get-ChildItem -Path $DependencyFolderPath -Filter "*.appx*" | Select-Object -ExpandProperty FullName | |
$FullPathtoAppxbundle = Get-ChildItem -Path $AppxbundlePath -Filter "*.appx*" | Select-Object -ExpandProperty FullName | |
Add-AppxPackage -Path $FullPathtoAppxbundle -DependencyPath $Dependencies |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Downloading appx packages:
http://woshub.com/how-to-download-appx-installation-file-for-any-windows-store-app/
Installing Windows Store if not available:
https://lumpics.ru/how-to-install-windows-store-in-windows-10/
https://www.py4u.net/discuss/1303834