Hey Y’all,
I came across a post somewhere about using Winget to install software so I thought I’d give it a try. Here’s a simple powershell script to install some of my favorite software. The script is notated with the results as trying to install from the Windows Store did not work, it hung up on the Agreement prompt.
[UPDATED: added NotePad++]
#Install PowerShell Core winget install --id Microsoft.Powershell --source winget #Install Google Chrome -- Tested OK winget install google.chrome #Install Mozilla FireFox (Stable) -- Tested OK winget install Mozilla.FireFox #Install NotePad++ -- Tested OK -- No Desktop Icon! winget install "Notepad++" --Source winget #Install VLC Media Player -- Tested OK winget install VideoLAN.VLC #Install MalwareBytes -- Tested OK winget install Malwarebytes.Malwarebytes #Install Office 365 Subscription -- Tested OK winget install Microsoft.Office #Install LibreOffice -- Tested OK winget install TheDocumentFoundation.LibreOffice --source winget #Install 7Zip -- Tested OK winget install 7zip.7zip #Install Foxit Reader -- Tested OK winget install Foxit.FoxitReader #Install USBDLM (USB Drive Letter Manager) -- Tested OK winget install UweSieber.USBDLM --source winget #Install RoboForm -- Tested OK winget install SiberSystems.RoboForm --source winget #Install OpenShell -- Tested OK winget install Open-Shell.Open-Shell-Menu --source winget #Install AOMEI Partition Assistant -- Tested OK winget install AOMEI.PartitionAssistant --source winget <#+--------------------------------------------------------+ | To search for MS Store Apps: | | winget search "name" --source msstore | +--------------------------------------------------------+ #> #Install Microsoft Quick Assist (From MS Store) -- Tested Hangs on Terms Prompt winget install 9P7BP5VNWKX5 --source msstore #Install SysInternals -- Tested Hangs on Terms Prompt winget install 9P7KNL5RWT25 #Install IrFanView 64 -- Tested Hangs on Terms Prompt winget install 9PJZ3BTL5PV6 --source msstore
Note: Downloading from the Windows Store failed both on Win10 Pro and Tiny11B2 installations. Both were running from a Local Account and I also tried while being logged into the MS Store.
Here’s what it looks like when it fails:
PS> winget install 9P7BP5VNWKX5 --source msstore - - Found Quick Assist [9P7BP5VNWKX5] Version Unknown This package is provided through Microsoft Store. winget may need to acquire the package from Microsoft Store on behalf of the current user. Agreements for Quick Assist [9P7BP5VNWKX5] Version Unknown Version: Unknown Publisher: Microsoft Corp. Description: Help family and friends with their PC or get help from them using Q uick Assist. Use a remote connection to view their screen or request full contro l during a session, make annotations, use a laser pointer, and more to help fix PC problems. License: ms-windows-store://pdp/?ProductId=9P7BP5VNWKX5 Privacy Url: https://go.microsoft.com/fwlink/?LinkId=521839 Agreements: Category: Utilities & tools Pricing: Free Free Trial: No Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction Seizure Warning: https://aka.ms/microsoft-store-seizure-warning Store License Terms: https://aka.ms/microsoft-store-license The publisher requires that you view the above information and accept the agreem ents before installing. Do you agree to the terms?
If anyone knows how to get the MS Store to work with Winget I’d be very appreciative.