Use the built in Windows update client

This commit is contained in:
Roey Darwish Dror
2020-02-27 22:06:14 +02:00
parent ddc76def2c
commit 670dbd1f64
3 changed files with 36 additions and 12 deletions

View File

@@ -380,10 +380,7 @@ fn run() -> Result<()> {
#[cfg(windows)]
{
if config.should_run(Step::System) {
runner.execute("Windows update", || {
powershell::Powershell::windows_powershell()
.windows_update(run_type, config.accept_all_windows_updates())
})?;
runner.execute("Windows update", || windows::windows_update(&ctx))?;
}
}