MediaTool icon indicating copy to clipboard operation
MediaTool copied to clipboard

would be nice if dependendy to ADK is removed

Open boschkundendienst opened this issue 7 months ago • 2 comments

Hi, I just wanted to create a "Windows Sandbox" to automatically run your tool in a control environment.

So I created the following script to autoexec when Sandbox starts

# Download PortableGit
$url="https://github.com/git-for-windows/git/releases/download/v2.49.0.windows.1/PortableGit-2.49.0-64-bit.7z.exe"
$path_to_file="$env:USERPROFILE\Downloads\portablegit7z.exe"
(New-Object System.Net.WebClient).DownloadFile($url, $path_to_file)

# install/extract PortableGit
Start-Process -Wait -NoNewWindow -FilePath "$env:USERPROFILE\Downloads\portablegit7z.exe" -ArgumentList "-o""$env:USERPROFILE\Downloads\\portablgit"" -y"

# clone Mediatool Repository
cd "$env:USERPROFILE\Downloads\"
$giturl="https://github.com/mtniehaus/MediaTool.git"
Start-Process -NoNewWindow -PassThru -Wait -FilePath "$env:USERPROFILE\Downloads\portablgit\bin\git.exe" -ArgumentList "clone $giturl"

# unzip MediaTool
cd "$env:USERPROFILE\Downloads\MediaTool\"
tar -xf "$env:USERPROFILE\Downloads\MediaTool\OofhoursMediaTool.zip"

# start MediaTool
Start-Process -FilePath "$env:USERPROFILE\Downloads\MediaTool\Release\MediaToolApp.exe"

All good so far but in Sandbox obviously I can not create the media to a destination drive and I can not create a bootable ISO because "The Assessment and Deployment Kit (ADK) is not installed."

Is there a possibility to get your tool running without ADK?

boschkundendienst avatar May 27 '25 09:05 boschkundendienst

What makes this "Sandbox mode"? The fact that you're working inside %USERPROFILE%?

ericgl avatar May 27 '25 10:05 ericgl

Windows Sandbox is a feature in Win10/11 kind of a VM. A really nice builtin feature addon.

boschkundendienst avatar May 29 '25 13:05 boschkundendienst