Local Reinstall Windows __link__ • Bonus Inside
public class ResetConfiguration
if (options.KeepPersonalFiles) string backupPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "WindowsResetBackup"); Directory.CreateDirectory(backupPath); // Backup user profiles string usersPath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); await CopyDirectoryAsync(usersPath, Path.Combine(backupPath, "UserData")); local reinstall windows
var options = new ResetOptions KeepPersonalFiles = KeepFilesCheckbox.IsChecked ?? false, KeepInstalledApps = KeepAppsCheckbox.IsChecked ?? false, UseLocalImage = LocalImageRadio.IsChecked ?? true, CleanDrives = CleanDrivesCheckbox.IsChecked ?? false ; await PerformLocalReinstall(options); public class ResetConfiguration if (options
return $true