winutil
winutil copied to clipboard
winutil can't detect oscdimg present on the system
Describe the bug a paradox
To Reproduce Steps to reproduce the behavior:
- Download oscdimg from official microsoft source: https://learn.microsoft.com/en-us/windows-hardware/get-started/adk-install
- Go to MicroWin
- Click on Select Windows ISO
- See error
Expected behavior
if (!$oscdImgFound)
{
$downloadFromGitHub = $sync.WPFMicrowinDownloadFromGitHub.IsChecked
if (!$downloadFromGitHub)
{
# only show the message to people who did check the box to download from github, if you check the box
# you consent to downloading it, no need to show extra dialogs
[System.Windows.MessageBox]::Show("oscdimge.exe is not found on the system, winutil will now attempt do download and install it using choco or github. This might take a long time.")
# the step below needs choco to download oscdimg
$chocoFound = [bool] (Get-Command -ErrorAction Ignore -Type Application choco)
Write-Host "choco on system: $chocoFound"
if (!$chocoFound)
{
[System.Windows.MessageBox]::Show("choco.exe is not found on the system, you need choco to download oscdimg.exe")
return
}
Start-Process -Verb runas -FilePath powershell.exe -ArgumentList "choco install windows-adk-oscdimg"
[System.Windows.MessageBox]::Show("oscdimg is installed, now close, reopen PowerShell terminal and re-launch winutil.ps1")
return
}
to not be triggered
Screenshots
Additional context I'm on windows 10 x64, wanted to update to a debloated windows 11, saw this utility and desided to give it a try, my guess is that this error caused by having 2 drives???
Out of curiosity, can you move oscdimg.exe into TEMP and try once more?
it worket after multiple fails, thanks
it worket after multiple fails, thanks
Could you shed light? I can't get it to work.....
Closed due to inactivity