How to programmatically launch a Windows 10 IoT application

I have a Windows 10 IoT application developed in C # and I need to restart the application when the configuration changes. How can an application reboot programmatically?

+4
source share
2 answers

Basics based on Richard's comments I decided the following:

  • I installed the application as the default application (see figure)
  • When I need to restart the application, just close it and the operating system will open again.

Default application setup How to install the default application

Code to close the application:

private void Exit()
{
   Windows.ApplicationModel.Core.CoreApplication.Exit();
}
+4
source

powershell , ? https://ms-iot.imtqy.com/content/en-US/win10/samples/PowerShell.htm

net start 'program'

, powershell

: IoT , , , ,

+2

Source: https://habr.com/ru/post/1618636/


All Articles