aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2024-12-10 20:15:36 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2024-12-10 20:15:36 +0200
commit523bb86f28158efe34b285ba07b2500ea59d09d1 (patch)
tree8bc2a3a5fbd835b0b2b45e3926e3d2b8c11e3fca /Software/Visual_Studio/PPC
parent8ca196e043592c65a66a5ef23d9958e992dd5949 (diff)
downloadTango-523bb86f28158efe34b285ba07b2500ea59d09d1.tar.gz
Tango-523bb86f28158efe34b285ba07b2500ea59d09d1.zip
Fixed CE crash with no light inks.
Diffstat (limited to 'Software/Visual_Studio/PPC')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.DataSynchronizer.CLI/Program.cs23
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest2
2 files changed, 24 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.DataSynchronizer.CLI/Program.cs b/Software/Visual_Studio/PPC/Tango.PPC.DataSynchronizer.CLI/Program.cs
index 27256cbdb..17785bb3c 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.DataSynchronizer.CLI/Program.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.DataSynchronizer.CLI/Program.cs
@@ -59,6 +59,7 @@ namespace Tango.PPC.DataSynchronizer.CLI
OverrideData();
UpdateMachine();
+ //ProvisionMachine();
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Synchronization Completed Successfully.");
@@ -113,5 +114,27 @@ namespace Tango.PPC.DataSynchronizer.CLI
throw new InvalidOperationException(result.Output);
}
}
+
+ private void ProvisionMachine()
+ {
+ Console.WriteLine("Executing provision machine script...");
+
+ ExaminerConfigurationBuilder builder = new ExaminerConfigurationBuilder(ExaminerConfigurationType.ProvisionMachine);
+ builder.SetSource(source).SetTarget(target).SetMachineSerialNumber(MACHINE_SERIAL_NUMBER).Synchronize();
+ var process = new ExaminerProcess(builder.Build(), ExaminerProcessType.Data);
+ process.Progress += (x, msg) =>
+ {
+ if (msg != null && !msg.Contains("SQL Examiner"))
+ {
+ Console.WriteLine(msg);
+ }
+ };
+ var result = process.Execute().Result;
+
+ if (result.ExitCode != ExaminerProcessExitCode.Success)
+ {
+ throw new InvalidOperationException(result.Output);
+ }
+ }
}
}
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest b/Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest
index d72e75011..efc5f8179 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest
@@ -16,7 +16,7 @@
Remove this element if your application requires this virtualization for backwards
compatibility.
-->
- <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
+ <!--<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />-->
</requestedPrivileges>
</security>
</trustInfo>