aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineSetup/MachineSetupManager.cs
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2019-07-28 13:24:28 +0300
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2019-07-28 13:24:28 +0300
commit230ea9b597a2932f5d16572d94ee14c862d5b419 (patch)
tree7e260db879dd815f5350e11a4a85ca04514237b7 /Software/Visual_Studio/PPC/Tango.PPC.Common/MachineSetup/MachineSetupManager.cs
parent16cc209e80498a0b39c1ad57d4f36be906cbb313 (diff)
parent30759321e22e22363eda9387e178b4d48b7d9088 (diff)
downloadTango-230ea9b597a2932f5d16572d94ee14c862d5b419.tar.gz
Tango-230ea9b597a2932f5d16572d94ee14c862d5b419.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
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.cs35
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.