Skip to content

Check required tools BEFORE making an iso #605

@thequver

Description

@thequver

If the internet connection is lost at the end, the entire time the script was working was wasted. It should've downloaded oscdimg at the beginning and not continued if it wasn't possible.

Creating ISO image...
ADK folder not found. Will be using bundled oscdimg.exe.
Downloading oscdimg.exe...
Invoke-WebRequest : The remote name could not be resolved: 'msdl.microsoft.com'
At tiny11maker.ps1:333 char:9
+         Invoke-WebRequest -Uri $url -OutFile $localOSCDIMGPath
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

tiny11maker.ps1 : Failed to download oscdimg.exe.
At line:1 char:1
+ tiny11maker.ps1 -ISO D -SCRATCH D
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,tiny11maker.ps1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions