PowerShell GUI for Downloading Microsoft Store Apps - W10_11StoreApps.ps1

No. I need to finish the cleanup function where it deletes older app versions in the download folder. I've always deleted all old dependencies, but something abbodi mentioned on MDL made me think it wasn't the right move.
 
Works pretty well tbh!
Can we have ability to select multiple apps to download at once instead of one at a time?
Perhaps a config file to always select the very basic apps like vclibs/codecs/msstore?
 
Im getting script errors executing on multiple systems about powershell 3 and ise. love the app but this is recent and would love it to be properly functional with powershell 5+ and 7+ since 3 and lower is deprecated
 
Im getting script errors executing on multiple systems about powershell 3 and ise. love the app but this is recent and would love it to be properly functional with powershell 5+ and 7+ since 3 and lower is deprecated
The script is written to run on PS 5, but has a dependency on ISE because I use Out-GridView as a selection filter when you're asked to choose between different versions of a given package. If you haven't written a WinForms script in PS, it's a real pain in the ass to recreate all the simple functionality that Out-GridView provides.

I imagine PS 7 is blocked from running, by this check at the top:
Code:
#Requires -Modules Microsoft.PowerShell.Utility

My understanding is Out-GridView has been restored in later PS 7 builds, but I'll have to look at it later today.
 
When I wrote this script a few years back, PS 6+ removed Out-GridView because it wasn't a "multi-platform feature" available for Mac and Linux. Therefore I never checked if it ran on PS 7.

But apparently they quietly added Out-GridView:
This cmdlet was reintroduced in PowerShell 7. This cmdlet is only available on Windows systems that support the Windows Desktop.

After testing on a 25H2 system with both ISE and PS 2.0 removed, I found the bug on setting the download file's timestamp where PS 7 is stricter than PS 5 and doesn't want to automatically recast a formatted string into [datetime] format.

I've updated the script and reposted the ZIP file. Thanks for the heads up.
 
Last edited:
When I wrote this script a few years back, PS 6+ removed Out-GridView because it wasn't a "multi-platform feature" available for Mac and Linux. Therefore I never checked if it ran on PS 7.

But apparently they quietly added Out-GridView:


After testing on a 25H2 system with both ISE and PS 2.0 removed, I found the bug on setting the download file's timestamp where PS 7 is stricter than PS 5 and doesn't want to automatically recast a formatted string into [datetime] format.

I've updated the script and reposted the ZIP file. Thanks for the heads up.
garlin
As you recently updated & republished this, so asking
is this suggestion, that you said you'd consider, taken care of in this latest version?
 
Your copy of the script already does that.
Code:
powershell -ep bypass -f W10_11StoreApps.ps1 -File Apps.txt

Apps.txt
Code:
https://apps.microsoft.com/store/detail/nvidia-control-panel/9NF8H0H7WMLT
9nht9rb2f4hd
Microsoft.HEIFImageExtension_8wekyb3d8bbwe
Clipchamp.Clipchamp_2.6.2.0_neutral_~_yxz26nhyzhsrt.msixbundle

You're allowed to list any Store URL, ProductID (beginning with 9), Package Family Name, or full appx/msix filename.
Anything that's unrecognized will be skipped over.

If you're running on PS7, just change line 1129 to read:
Code:
            [datetime][string]$LastModified = (Invoke-WebRequest -UseBasicParsing -Uri $URL -Method HEAD).Headers.'Last-Modified'
 
Great script (I used the version in post #1). I even found some apps I was unaware of.

Is there a way to download the x86 dependencies with the x64 installer? Microsoft suggests installing both x86 and x64 dependencies on an x64 system. This is what the Microsoft Store does when it installs an app.
 
Good point, I'll have figure how to adjust the package matching.
 
Back in the day, MS added all Microsoft.VCLibs.120.00 x64/x86/arm dependencies to all Windows 8.1 images regardless
it was not very uptight :D
 
Some of these Appx dependencies are "neutral", or cross-platform packages. Ahem.
 
lol ... so far there's only a 1.0 and 2.0. I only encountered them recently (like since windows 10 went esu).
 
Great script (I used the version in post #1). I even found some apps I was unaware of.

Is there a way to download the x86 dependencies with the x64 installer? Microsoft suggests installing both x86 and x64 dependencies on an x64 system. This is what the Microsoft Store does when it installs an app.
Try this beta build. There's a new checkbox to include 32-bit versions of dependencies, if they exist.

A variable at the script's start controls whether this checkbox is auto-checked or not. You can change it to your preferred default.
Code:
$Include32bit_Preference = $true

1766613062040.png
 

Attachments

Worked well on the apps I tried. Only thing I noticed is ZuneVideo latest is 2019.25101.10035.0 in the downloads but latest store will install for Windows 10 is 2019.25101.10031.0. Also if you download 2019.25101.10035.0 and look in the archive it seems to be for Video Hololens Production. Not sure what is going on there but you know as much as I do.

Thanks for the hard work. :p
 
The current versions of the script work as a smart UI wrapper on https://store.rg-adguard.net/api/GetFiles. An upcoming rewrite is free of that dependency, and talks directly to the WU back-end.

Like you, I have seen weird discrepancies to what rg-adguard reports as the "latest version". My suspicion is they're doing some caching on their end, so they're not always returning the latest product build.
 
Worked well on the apps I tried. Only thing I noticed is ZuneVideo latest is 2019.25101.10035.0 in the downloads but latest store will install for Windows 10 is 2019.25101.10031.0. Also if you download 2019.25101.10035.0 and look in the archive it seems to be for Video Hololens Production. Not sure what is going on there but you know as much as I do.

Thanks for the hard work. :p
same for WhatsApp,
latest store version= 2.3000.1031504512.258709
This app/tool offered v2.2587.9.0 for all (retail/preview/slow/fast) channels.
 
Back
Top