brigadier icon indicating copy to clipboard operation
brigadier copied to clipboard

Point brigadier to local copy of BootCampESD.pkg on Windows

Open jackrsteiner opened this issue 6 years ago • 1 comments

Hi, cool project.

I'm working in an area with very limited internet access. I have the appropriate BootCampESD.pkg for my system already downloaded, and I have brigadier on that system. The system only has Windows. Now, how can I point brigadier to the local pkg and convert it to a Windows executable?

Thanks

jackrsteiner avatar Mar 12 '18 03:03 jackrsteiner

Assuming you have 7zip installed, you can do this:

$7z = "$env:ProgramFiles\7-Zip\7z.exe" $OutputDir = "$env:SystemRoot\Temp"

& $7z -o"$OutputDir" -y e $OutputDir\BootCampESD.pkg & $7z -o"$OutputDir" -y e $OutputDir\Payload~ & $7z -o"$OutputDir" -y x $OutputDir\WindowsSupport.dmg

Unfortunately, this had been working on older installers but no longer does. Maybe you can play with it and get something similar to work:

$scaction=New-ScheduledTaskAction -Execute "msiexec.exe" -Argument "/i $OutputDir\Bootcamp\Drivers\Apple\BootCamp.msi /qn /norestart" $sctrigger=New-ScheduledTaskTrigger -AtStartup $scprincipal=New-ScheduledTaskPrincipal "SYSTEM" -RunLevel Highest $scsettings=New-ScheduledTaskSettingsSet $sctask=New-ScheduledTask -Action $scaction -Principal $scprincipal -Trigger $sctrigger -Settings $scsettings Register-ScheduledTask "Install Bootcamp" -InputObject $sctask -User "SYSTEM" Restart-Computer -Force

nathanmcnulty avatar Mar 12 '18 16:03 nathanmcnulty