Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: facilitate optional hardware driver injection #326

Open
kevpatts opened this issue Feb 5, 2025 · 1 comment
Open

Suggestion: facilitate optional hardware driver injection #326

kevpatts opened this issue Feb 5, 2025 · 1 comment

Comments

@kevpatts
Copy link

kevpatts commented Feb 5, 2025

When I built this ISO I couldn't install it on a DeskMini as it needed disk drivers and threw an error when I tried to use them from USB. I modified the script to add this to get around it:

Write-Host "Mounting complete!"

if ((Test-Path "$PSScriptRoot\Drivers") -eq $false) {
    Write-Host "No $PSScriptRoot\Drivers folder found to install."
} else {
    Write-Host "$PSScriptRoot\Drivers folder found. Injecting drivers into install image..."
    Add-WindowsDriver -Path $ScratchDisk\scratchdir\ -Driver $PSScriptRoot\Drivers -Recurse
}

Write-Host "Performing removal of applications..."
@kevpatts
Copy link
Author

kevpatts commented Feb 8, 2025

Actually, if you want to use the drivers from the existing host you're building it on you can export them too using:

Export-WindowsDriver -Online -Destination $PSScriptRoot\Drivers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant