Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var processStartInformation = new ProcessStartInfo
- {
- WorkingDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Windows), "sysnative"),
- FileName = "dism.exe",
- Arguments = @"/Online /Enable-Feature /FeatureName:NetFx3 /All",
- WindowStyle = ProcessWindowStyle.Hidden,
- UseShellExecute = true,
- Verb = "runas"
- };
- Process process = Process.Start(processStartInformation);
- process.WaitForExit();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement