If you get winget working but it complains about finding source, do this in PowerShell
"winget source remove msstore"
I assume you have constructed your Sandbox.wsb file to set up a share folder.
If not, this works. Note the location of the location and name of the folder. Your choice.
Copy/Paste into Notepad and name Sandbox.wsb
<Configuration>
<MappedFolders>
<MappedFolder>
<HostFolder>C:\Sandbox</HostFolder>
<ReadOnly>false</ReadOnly>
</MappedFolder>
</MappedFolders>
</Configuration>
Now run both the Winget and the MSstore script. Install Winget and the MSstore with Thiojoe's scripts found here:
I put the script in a "script.ps1" and run it with an "install.bat" file. Names your choice.
Let's say your ps1 file is ThioScript.ps1. Then your bat would be this:
"powershell.exe -ExecutionPolicy Bypass -File ThioScript.ps1"
Right click and run as admin.
My Portable script creates folders, downloads portable apps and extracts them into the proper folders.
Copy and Paste the script below into Notepad and save as "portable_install.bat".
cd /d %userprofile%\Desktop
@echo off
echo Installing 7-Zip...
winget install --id 7zip.7zip --source winget --silent --accept-package-agreements --accept-source-agreements
echo Installing Notepad++...
winget install --id Notepad++.Notepad++ --source winget --silent --accept-package-agreements --accept-source-agreements
echo Installing UniGetUI...
winget install --id UniGet.UniGetUI --source winget --silent --accept-package-agreements --accept-source-agreements
echo All installations completed.
pause
mkdir C:\Portable\Excluded
mkdir C:\Drivers\Benchmarks
mkdir C:\Desk
mkdir C:\Pictures\Wallpaper
mkdir C:\"Program Archives"
curl.exe -L https://www.ugmfree.it/Download/SyMenu/SyMenu.zip -o C:\Portable\symenu.zip
curl.exe -L https://www.carifred.com/uvk/UVKPortable.exe -o C:\Portable\UVK.exe
curl.exe -L https://www.sordum.org/files/download/defender-exclusion-tool/ExcTool.zip -o C:\Portable\Excluded\ExcTool.zip
curl.exe -L https://www.nirsoft.net/utils/wnetwatcher.zip -o C:\Portable\Excluded\wnetwatcher.zip
curl.exe -L https://downloads.wisecleaner.com/soft/WDCFree_11.1.6.832.zip -o C:\Portable\WDCFree.zip
curl.exe -L https://windows-repair-toolbox.com/files/Windows_Repair_Toolbox.zip -o C:\Portable\Windows_Repair_Toolbox.zip
curl https://homeupdater.patchmypc.com/public/PatchMyPC-HomeUpdater-Portable.exe -o C:\Portable\PatchMyPC.exe
curl.exe -L https://www.revouninstaller.com/download-free-portable.php -o C:\Portable\revo.zip
curl -L "https://sourceforge.net/projects/hwinfo/files/Windows_Portable/hwi_822.zip/download" -o C:\Portable\hwi_822.zip
pause
::Separate Extract_Delete.cmd
:: No big deal. I just wanted to do it. Manual extract is fast and easy.
:: Answer "A" to the requests.
"C:\Program Files\7-Zip\7z.exe" e "C:\Portable\Excluded\ExcTool.zip" -o"C:\Portable\Excluded\ExcTool" && del C:\Portable\Excluded\ExcTool.zip"
"C:\Program Files\7-Zip\7z.exe" e "C:\Portable\Excluded\wnetwatcher.zip" -o"C:\Portable\Excluded\wnetwatcher.zip" && del C:\Portable\Excluded\wnetwatcher.zip"
"C:\Program Files\7-Zip\7z.exe" e "C:\Portable\Windows_Repair_Toolbox.zip" -o"C:\Portable\Windows_Repair_Toolbox" && del "C:\Portable\Windows_Repair_Toolbox.zip"
"C:\Program Files\7-Zip\7z.exe" e "C:\Portable\symenu.zip" -o"C:\Portable\Symenu" && del "C:\Portable\symenu.zip"
"C:\Program Files\7-Zip\7z.exe" e "C:\Portable\WDCFree.zip" -o"C:\Portable\WDCFree" && del "C:\Portable\WDCFree.zip"
"C:\Program Files\7-Zip\7z.exe" e "C:\Portable\revo.zip" -o"C:\Portable\RevoUninstaller_Portable.zip" && del "C:\Portable\revo.zip"
"C:\Program Files\7-Zip\7z.exe" e "C:\Portable\hwi_822.zip" o"C:\Portable\C:\Portable\hwi_822.zip" && del "C:\Portable\hwi_822.zip"
pause