I've just automated a few things on top of this original work: https://www.aloneguid.uk/posts/2022/12/launch-windows-sandbox-with-winget-enabled/
- downloading the winget install packages if not already present (this folder then gets shared into the guest sandbox)
- dodges github's 100MB max file size limitation since the msixbundle is 250MB
- building a parameterized .wsb Sandbox Config file to avoid hard coding abolute paths which would make this whole bundle less portable
- prompting for & installing common tools inside the sandbox (e.g. vscode, git for windows)
- also sharing the hosts Downloads folder inside the sandbox for file transfer convenience
File | Description |
---|---|
host_driver.ps1 | this is the main script to be launched |
sandbox_side.ps1 | this gets called from inside the sandbox upon startup, to install winget, etc |
appx & msix | install packages for the winget binaries find latest updates here: https://learn.microsoft.com/en-us/windows/package-manager/winget/#install-winget-on-windows-sandbox |