From 5ed7b9e19a400eab1ebed0b628fb16f4e81439d4 Mon Sep 17 00:00:00 2001 From: Calyx Hikari Date: Fri, 31 Oct 2025 12:36:27 +0800 Subject: [PATCH] Show progress inside PS window --- index.html | 4 ++-- net35 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index ac685e7..304f7ea 100644 --- a/index.html +++ b/index.html @@ -248,10 +248,10 @@ function Main { } else { if ($isServer) { - Start-Process -FilePath "$env:SystemRoot\System32\Dism.exe" -ArgumentList "/online /enable-feature /featurename:netfx3 /all" -Wait + Dism /Online /Enable-Feature /FeatureName:NetFx3 /All } else { - Start-Process -FilePath "$env:SystemRoot\System32\Dism.exe" -ArgumentList "/online /enable-feature /featurename:netfx3" -Wait + Dism /Online /Enable-Feature /FeatureName:NetFx3 } } } diff --git a/net35 b/net35 index 6246d9e..73a14b2 100644 --- a/net35 +++ b/net35 @@ -162,10 +162,10 @@ function Main { } else { if ($isServer) { - Start-Process -FilePath "$env:SystemRoot\System32\Dism.exe" -ArgumentList "/online /enable-feature /featurename:netfx3 /all" -Wait + Dism /Online /Enable-Feature /FeatureName:NetFx3 /All } else { - Start-Process -FilePath "$env:SystemRoot\System32\Dism.exe" -ArgumentList "/online /enable-feature /featurename:netfx3" -Wait + Dism /Online /Enable-Feature /FeatureName:NetFx3 } }