Deploy automation of Win10 IoT Background application on RPi3
The RPi3 is running Win 10 IoT Core v.10.0.17661.1001 and is configured in headless mode, so no foreground app may run.
ref.: https://docs.microsoft.com/en-us/windows/iot-core/learn-about-hardware/headlessmode
The deployment must take place without any human interaction and the apps must be configured by default as startup, and here the problem begins..
A background 'auto-update' application is installed and configured as startup manually. This may update or install other applications (sideloaded) without requiring any user input, however, when a new application is installed I need to configure it as startup, so if the device is restarted I know for sure the process is running.
Also, more than one app will need to be configured to launch at startup.
I've tried the following methods:
1)The startup task extension, doesn't work on Win10 IoT Core, only being available on Win Desktop:
https://docs.microsoft.com/en-us/uwp/api/windows.applicationmodel.startuptask#windows-web-app-wwa-startup-task-extension
2)Configuring as startup on first run doesn't work either, and an exception is thrown when querying by the startup id.
https://blogs.windows.com/buildingapps/2017/08/01/configure-app-start-log/#17JjiMyXTtyyAkRV.97
3) Running powershell scripts or IotStartup commands from the 'auto-update' process after a new app is installed, however on Win10IoT Core this cannot be executed from the application (at least for powershell).
https://www.hackster.io/AnuragVasanwala/windows-10-iot-core-setting-startup-app-887ed0
4)I've found this method for running cmd from code on IoT
http://www.iot-developer.net/windows-iot/uwp-programming-in-c/command-line-uwp-programming-in-c/executing-command-line-commands
The funny thing is Windows.System.ProcessLauncher and related classes don't seem to exist.
I guess the closest I got to configuring the apps as startup is the 4th method described, though I still need to figure out what happen with the ProcessLauncher or if I may require some specific version of SDK for using it.
Already wasted several hours trying to make this work, so if anyone has any insights or ideas please let me know! :)
c# uwp iot background-application
add a comment |
The RPi3 is running Win 10 IoT Core v.10.0.17661.1001 and is configured in headless mode, so no foreground app may run.
ref.: https://docs.microsoft.com/en-us/windows/iot-core/learn-about-hardware/headlessmode
The deployment must take place without any human interaction and the apps must be configured by default as startup, and here the problem begins..
A background 'auto-update' application is installed and configured as startup manually. This may update or install other applications (sideloaded) without requiring any user input, however, when a new application is installed I need to configure it as startup, so if the device is restarted I know for sure the process is running.
Also, more than one app will need to be configured to launch at startup.
I've tried the following methods:
1)The startup task extension, doesn't work on Win10 IoT Core, only being available on Win Desktop:
https://docs.microsoft.com/en-us/uwp/api/windows.applicationmodel.startuptask#windows-web-app-wwa-startup-task-extension
2)Configuring as startup on first run doesn't work either, and an exception is thrown when querying by the startup id.
https://blogs.windows.com/buildingapps/2017/08/01/configure-app-start-log/#17JjiMyXTtyyAkRV.97
3) Running powershell scripts or IotStartup commands from the 'auto-update' process after a new app is installed, however on Win10IoT Core this cannot be executed from the application (at least for powershell).
https://www.hackster.io/AnuragVasanwala/windows-10-iot-core-setting-startup-app-887ed0
4)I've found this method for running cmd from code on IoT
http://www.iot-developer.net/windows-iot/uwp-programming-in-c/command-line-uwp-programming-in-c/executing-command-line-commands
The funny thing is Windows.System.ProcessLauncher and related classes don't seem to exist.
I guess the closest I got to configuring the apps as startup is the 4th method described, though I still need to figure out what happen with the ProcessLauncher or if I may require some specific version of SDK for using it.
Already wasted several hours trying to make this work, so if anyone has any insights or ideas please let me know! :)
c# uwp iot background-application
1
Consuming the RPi RestApi exposed for the Device Portal seem to do the trick. POST to http://localhost:8080/api/iot/appx/startupHeadlessApp?appid={String64AppPackageFamilyName}!App from withing 'auto-update' application after installing new packages. This may look like an ugly workaround, however no other method worked.
– Mash
Nov 23 '18 at 14:12
add a comment |
The RPi3 is running Win 10 IoT Core v.10.0.17661.1001 and is configured in headless mode, so no foreground app may run.
ref.: https://docs.microsoft.com/en-us/windows/iot-core/learn-about-hardware/headlessmode
The deployment must take place without any human interaction and the apps must be configured by default as startup, and here the problem begins..
A background 'auto-update' application is installed and configured as startup manually. This may update or install other applications (sideloaded) without requiring any user input, however, when a new application is installed I need to configure it as startup, so if the device is restarted I know for sure the process is running.
Also, more than one app will need to be configured to launch at startup.
I've tried the following methods:
1)The startup task extension, doesn't work on Win10 IoT Core, only being available on Win Desktop:
https://docs.microsoft.com/en-us/uwp/api/windows.applicationmodel.startuptask#windows-web-app-wwa-startup-task-extension
2)Configuring as startup on first run doesn't work either, and an exception is thrown when querying by the startup id.
https://blogs.windows.com/buildingapps/2017/08/01/configure-app-start-log/#17JjiMyXTtyyAkRV.97
3) Running powershell scripts or IotStartup commands from the 'auto-update' process after a new app is installed, however on Win10IoT Core this cannot be executed from the application (at least for powershell).
https://www.hackster.io/AnuragVasanwala/windows-10-iot-core-setting-startup-app-887ed0
4)I've found this method for running cmd from code on IoT
http://www.iot-developer.net/windows-iot/uwp-programming-in-c/command-line-uwp-programming-in-c/executing-command-line-commands
The funny thing is Windows.System.ProcessLauncher and related classes don't seem to exist.
I guess the closest I got to configuring the apps as startup is the 4th method described, though I still need to figure out what happen with the ProcessLauncher or if I may require some specific version of SDK for using it.
Already wasted several hours trying to make this work, so if anyone has any insights or ideas please let me know! :)
c# uwp iot background-application
The RPi3 is running Win 10 IoT Core v.10.0.17661.1001 and is configured in headless mode, so no foreground app may run.
ref.: https://docs.microsoft.com/en-us/windows/iot-core/learn-about-hardware/headlessmode
The deployment must take place without any human interaction and the apps must be configured by default as startup, and here the problem begins..
A background 'auto-update' application is installed and configured as startup manually. This may update or install other applications (sideloaded) without requiring any user input, however, when a new application is installed I need to configure it as startup, so if the device is restarted I know for sure the process is running.
Also, more than one app will need to be configured to launch at startup.
I've tried the following methods:
1)The startup task extension, doesn't work on Win10 IoT Core, only being available on Win Desktop:
https://docs.microsoft.com/en-us/uwp/api/windows.applicationmodel.startuptask#windows-web-app-wwa-startup-task-extension
2)Configuring as startup on first run doesn't work either, and an exception is thrown when querying by the startup id.
https://blogs.windows.com/buildingapps/2017/08/01/configure-app-start-log/#17JjiMyXTtyyAkRV.97
3) Running powershell scripts or IotStartup commands from the 'auto-update' process after a new app is installed, however on Win10IoT Core this cannot be executed from the application (at least for powershell).
https://www.hackster.io/AnuragVasanwala/windows-10-iot-core-setting-startup-app-887ed0
4)I've found this method for running cmd from code on IoT
http://www.iot-developer.net/windows-iot/uwp-programming-in-c/command-line-uwp-programming-in-c/executing-command-line-commands
The funny thing is Windows.System.ProcessLauncher and related classes don't seem to exist.
I guess the closest I got to configuring the apps as startup is the 4th method described, though I still need to figure out what happen with the ProcessLauncher or if I may require some specific version of SDK for using it.
Already wasted several hours trying to make this work, so if anyone has any insights or ideas please let me know! :)
c# uwp iot background-application
c# uwp iot background-application
asked Nov 23 '18 at 8:33
MashMash
11
11
1
Consuming the RPi RestApi exposed for the Device Portal seem to do the trick. POST to http://localhost:8080/api/iot/appx/startupHeadlessApp?appid={String64AppPackageFamilyName}!App from withing 'auto-update' application after installing new packages. This may look like an ugly workaround, however no other method worked.
– Mash
Nov 23 '18 at 14:12
add a comment |
1
Consuming the RPi RestApi exposed for the Device Portal seem to do the trick. POST to http://localhost:8080/api/iot/appx/startupHeadlessApp?appid={String64AppPackageFamilyName}!App from withing 'auto-update' application after installing new packages. This may look like an ugly workaround, however no other method worked.
– Mash
Nov 23 '18 at 14:12
1
1
Consuming the RPi RestApi exposed for the Device Portal seem to do the trick. POST to http://localhost:8080/api/iot/appx/startupHeadlessApp?appid={String64AppPackageFamilyName}!App from withing 'auto-update' application after installing new packages. This may look like an ugly workaround, however no other method worked.
– Mash
Nov 23 '18 at 14:12
Consuming the RPi RestApi exposed for the Device Portal seem to do the trick. POST to http://localhost:8080/api/iot/appx/startupHeadlessApp?appid={String64AppPackageFamilyName}!App from withing 'auto-update' application after installing new packages. This may look like an ugly workaround, however no other method worked.
– Mash
Nov 23 '18 at 14:12
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53443106%2fdeploy-automation-of-win10-iot-background-application-on-rpi3%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53443106%2fdeploy-automation-of-win10-iot-background-application-on-rpi3%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Consuming the RPi RestApi exposed for the Device Portal seem to do the trick. POST to http://localhost:8080/api/iot/appx/startupHeadlessApp?appid={String64AppPackageFamilyName}!App from withing 'auto-update' application after installing new packages. This may look like an ugly workaround, however no other method worked.
– Mash
Nov 23 '18 at 14:12