Enable Windows Sandbox Feature
copy/paste between sandbox & host system works
open sandbox
Installing Winget is tricky but easier in 10 than 11
In windows 10 use this ps1 script I finally found HERE
or
curl -O -L https://github.com/HarmVeenstra/Powershellisfun/raw/refs/heads/main/Create%20a%20development%20Windows%20Sandbox/Install_WinGet_and_Software.ps1
In Windows 10 Winget will now work. The script will not complete in Windows 11.
This method will work in both 10 and 11 and may be the best.
Download UnigetUI installer from HERE
UnigetUI will install a working Winget and be able to download Winget files.
CMD and/or Powershell, however will not recognize winget.exe because it's not in the System Envirenment Variable Path.
winget.exe is here C:\Program Files\UningetUI\winget-cli_x64
add the path to into Envirenment Variables
A bonus to this method is Chocolatey will be installed.
Winget export & import commands
Export command:
winget export -o %userprofile%\desktop\appslist --accept-source-agreements
Import command
winget import -i %userprofile%\desktop\appslist --ignore-versions --accept-package-agreements --accept-source-agreements
It takes awhile to load so be patient.
If app install fails error code 1 check VCRedist.2015+.x64 is installed.
If errors occur validate the json file here https://jsonlint.com/
Also check the file extension matches the command.
Sandbox defaults to not show file extensions.
Open file explorer > view and check file extension.
You need to either delete ".txt" or add .txt to the import command.
A few install popus appeared but the install was not affected.
RocketDock failed with hash not match. Couldn't install without swithches.
Failures do not stop the installs.
By the way . . . RocketDock installs just fine in UnigetUI with Chocolatey.
UnigetUI installs Chocolatey when you start it the first time.
I also get LaunchyQT with Chocolatey.
choco install rocketdock launchyqt irfanviewplugins -y
Observation
UnigetUi bundles.json sometimes fails on simple installs like 7zip but not always.
Where as Winget appslist.json does not fail
For now, I prefer Winget appslist.json installs.
appslist file
{
"$schema" : "https://aka.ms/winget-packages.schema.2.0.json",
"CreationDate" : "2024-09-29T09:35:27.698-00:00",
"Sources" :
[
{
"Packages" :
[
{
"PackageIdentifier" : "MartiCliment.UniGetUI"
},
{
"PackageIdentifier" : "ShareX.ShareX"
},
{
"PackageIdentifier" : "AutoHotkey.AutoHotkey"
},
{
"PackageIdentifier" : "voidtools.Everything"
},
{
"PackageIdentifier" : "HexChat.HexChat"
},
{
"PackageIdentifier" : "IrfanSkiljan.IrfanView"
},
{
"PackageIdentifier" : "Mozilla.Firefox"
},
{
"PackageIdentifier" : "Notepad++.Notepad++"
},
{
"PackageIdentifier" : "Proton.ProtonVPN"
},
{
"PackageIdentifier" : "VideoLAN.VLC"
},
{
"PackageIdentifier" : "winaero.tweaker"
},
{
"PackageIdentifier" : "nepnep.neofetch-win"
},
{
"PackageIdentifier" : "7zip.7zip"
},
{
"PackageIdentifier" : "AdrienAllard.FileConverter"
},
{
"PackageIdentifier" : "Microsoft.PowerShell"
},
{
"PackageIdentifier" : "Oracle.VirtualBox"
},
{
"PackageIdentifier" : "Google.Chrome.EXE"
},
{
"PackageIdentifier" : "2BrightSparks.SyncBackFree"
},
{
"PackageIdentifier" : "Chocolatey.ChocolateyGUI"
},
{
"PackageIdentifier" : "AOMEI.Backupper.Standard"
},
{
"PackageIdentifier" : "flux.flux"
},
{
"PackageIdentifier" : "LocalSend.LocalSend"
},
{
"PackageIdentifier" : "Microsoft.PowerToys"
}
],
"SourceDetails" :
{
"Argument" : "https://cdn.winget.microsoft.com/cache",
"Identifier" : "Microsoft.Winget.Source_8wekyb3d8bbwe",
"Name" : "winget",
"Type" : "Microsoft.PreIndexed.Package"
}
},
{
"Packages" :
[
{
"PackageIdentifier" : "9N0DX20HK701"
}
],
"SourceDetails" :
{
"Argument" : "https://storeedgefd.dsx.mp.microsoft.com/v9.0",
"Identifier" : "StoreEdgeFD",
"Name" : "msstore",
"Type" : "Microsoft.Rest"
}
}
],
"WinGetVersion" : "1.8.1911"
}