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 } }