diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-07-24 14:55:44 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-07-24 14:55:44 +0300 |
| commit | d052a52d3a6fb6c82a4f1299a0b99dd75726edba (patch) | |
| tree | bba891a86cac5dde003cedb8f7579208cb543644 /Software/Visual_Studio/PPC/Tango.PPC.Common/MachineSetup/MachineSetupManager.cs | |
| parent | 13cea5de4abfa38528ba74d9542734e133acaa81 (diff) | |
| download | Tango-d052a52d3a6fb6c82a4f1299a0b99dd75726edba.tar.gz Tango-d052a52d3a6fb6c82a4f1299a0b99dd75726edba.zip | |
Working on factory reset.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/MachineSetup/MachineSetupManager.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Common/MachineSetup/MachineSetupManager.cs | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineSetup/MachineSetupManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineSetup/MachineSetupManager.cs index 05cf15a38..94091b284 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineSetup/MachineSetupManager.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineSetup/MachineSetupManager.cs @@ -164,25 +164,28 @@ namespace Tango.PPC.Common.MachineSetup }); } - if (setup_response.SetupActivation) + if (settings.ApplicationState == ApplicationStates.PreSetup) { - LogManager.Log("Activating windows license..."); - UpdateProgress("Activating operation system license", "Activating..."); - await _windows_manager.Activate(setup_response.OSKey); - } + if (setup_response.SetupActivation) + { + LogManager.Log("Activating windows license..."); + UpdateProgress("Activating operation system license", "Activating..."); + await _windows_manager.Activate(setup_response.OSKey); + } - if (setup_response.SetupRemoteAssistance) - { - LogManager.Log("Installing remote assistance..."); - UpdateProgress("Installing remote assistance", "Installing..."); - await _remoteAssistance.InstallRemoteAssistance(serialNumber); - } + if (setup_response.SetupRemoteAssistance) + { + LogManager.Log("Installing remote assistance..."); + UpdateProgress("Installing remote assistance", "Installing..."); + await _remoteAssistance.InstallRemoteAssistance(serialNumber); + } - if (setup_response.SetupUWF) - { - LogManager.Log("Activating unified write filter..."); - UpdateProgress("Activating disk protection", "Activating..."); - await _uwf.Setup(); + if (setup_response.SetupUWF) + { + LogManager.Log("Activating unified write filter..."); + UpdateProgress("Activating disk protection", "Activating..."); + await _uwf.Setup(); + } } //Create temporary folders for packages. |
