Can Windows CE 6 auto-run an application on an inserted USB stick?
By default, does Windows CE 6 auto-run applications found on an inserted USB stick? We are actually trying to make sure this does NOT happen, but the documentation we're finding is contradictory as to whether it happens or not ...
In response to Ramhound's request:
1) There's a post on stackoverflow that seems related, but the msdn page it links to is talking about running specific programs, not "run whatever shows up on an inserted USB Stick" (what Windows XP/7/8/etc. calls autorun).
2) There's a discussion on intermec that points to an msdn page talking about autorun, but it's talking about Windows Mobile which may or may not apply to Windows CE. There's also a link to Security Policy Settings which is totally out of context and I don't know how to apply the information therein.
3) Bruce Eitman (who usually knows what he is talking about) says "Windows CE ... doesn’t automatically run applications on removable media when the media is inserted." (emphasis mine)
4) There is a discussion about autorun on msdn that leaves the question un-answered
Practical Test
To our existing WinCE 6 app (which runs off an SD card) I added a call to SHGetAutoRunPath(). It returned "Network2577autorun.exe" where 2577 is the expected ARM processor number but "Network" is strange since it's not connected to a network. This same value is returned whether I have a USB stick inserted at boot time or not.
I then made another version of our existing app that simply wrote a file ("autoran.txt") onto a writable directory on the SD card, and copied the modified app to "2577autorun.exe" on a USB stick. Having this USB stick inserted when the device booted resulted in NO "autoran.txt" file appearing on the SD card, indicating autorun did not happen.
usb-flash-drive autorun windows-ce
add a comment |
By default, does Windows CE 6 auto-run applications found on an inserted USB stick? We are actually trying to make sure this does NOT happen, but the documentation we're finding is contradictory as to whether it happens or not ...
In response to Ramhound's request:
1) There's a post on stackoverflow that seems related, but the msdn page it links to is talking about running specific programs, not "run whatever shows up on an inserted USB Stick" (what Windows XP/7/8/etc. calls autorun).
2) There's a discussion on intermec that points to an msdn page talking about autorun, but it's talking about Windows Mobile which may or may not apply to Windows CE. There's also a link to Security Policy Settings which is totally out of context and I don't know how to apply the information therein.
3) Bruce Eitman (who usually knows what he is talking about) says "Windows CE ... doesn’t automatically run applications on removable media when the media is inserted." (emphasis mine)
4) There is a discussion about autorun on msdn that leaves the question un-answered
Practical Test
To our existing WinCE 6 app (which runs off an SD card) I added a call to SHGetAutoRunPath(). It returned "Network2577autorun.exe" where 2577 is the expected ARM processor number but "Network" is strange since it's not connected to a network. This same value is returned whether I have a USB stick inserted at boot time or not.
I then made another version of our existing app that simply wrote a file ("autoran.txt") onto a writable directory on the SD card, and copied the modified app to "2577autorun.exe" on a USB stick. Having this USB stick inserted when the device booted resulted in NO "autoran.txt" file appearing on the SD card, indicating autorun did not happen.
usb-flash-drive autorun windows-ce
Can you quote said documentation?
– Ramhound
Jul 13 '15 at 15:38
add a comment |
By default, does Windows CE 6 auto-run applications found on an inserted USB stick? We are actually trying to make sure this does NOT happen, but the documentation we're finding is contradictory as to whether it happens or not ...
In response to Ramhound's request:
1) There's a post on stackoverflow that seems related, but the msdn page it links to is talking about running specific programs, not "run whatever shows up on an inserted USB Stick" (what Windows XP/7/8/etc. calls autorun).
2) There's a discussion on intermec that points to an msdn page talking about autorun, but it's talking about Windows Mobile which may or may not apply to Windows CE. There's also a link to Security Policy Settings which is totally out of context and I don't know how to apply the information therein.
3) Bruce Eitman (who usually knows what he is talking about) says "Windows CE ... doesn’t automatically run applications on removable media when the media is inserted." (emphasis mine)
4) There is a discussion about autorun on msdn that leaves the question un-answered
Practical Test
To our existing WinCE 6 app (which runs off an SD card) I added a call to SHGetAutoRunPath(). It returned "Network2577autorun.exe" where 2577 is the expected ARM processor number but "Network" is strange since it's not connected to a network. This same value is returned whether I have a USB stick inserted at boot time or not.
I then made another version of our existing app that simply wrote a file ("autoran.txt") onto a writable directory on the SD card, and copied the modified app to "2577autorun.exe" on a USB stick. Having this USB stick inserted when the device booted resulted in NO "autoran.txt" file appearing on the SD card, indicating autorun did not happen.
usb-flash-drive autorun windows-ce
By default, does Windows CE 6 auto-run applications found on an inserted USB stick? We are actually trying to make sure this does NOT happen, but the documentation we're finding is contradictory as to whether it happens or not ...
In response to Ramhound's request:
1) There's a post on stackoverflow that seems related, but the msdn page it links to is talking about running specific programs, not "run whatever shows up on an inserted USB Stick" (what Windows XP/7/8/etc. calls autorun).
2) There's a discussion on intermec that points to an msdn page talking about autorun, but it's talking about Windows Mobile which may or may not apply to Windows CE. There's also a link to Security Policy Settings which is totally out of context and I don't know how to apply the information therein.
3) Bruce Eitman (who usually knows what he is talking about) says "Windows CE ... doesn’t automatically run applications on removable media when the media is inserted." (emphasis mine)
4) There is a discussion about autorun on msdn that leaves the question un-answered
Practical Test
To our existing WinCE 6 app (which runs off an SD card) I added a call to SHGetAutoRunPath(). It returned "Network2577autorun.exe" where 2577 is the expected ARM processor number but "Network" is strange since it's not connected to a network. This same value is returned whether I have a USB stick inserted at boot time or not.
I then made another version of our existing app that simply wrote a file ("autoran.txt") onto a writable directory on the SD card, and copied the modified app to "2577autorun.exe" on a USB stick. Having this USB stick inserted when the device booted resulted in NO "autoran.txt" file appearing on the SD card, indicating autorun did not happen.
usb-flash-drive autorun windows-ce
usb-flash-drive autorun windows-ce
edited May 23 '17 at 12:41
Community♦
1
1
asked Jul 13 '15 at 15:26
Betty CrokkerBetty Crokker
119211
119211
Can you quote said documentation?
– Ramhound
Jul 13 '15 at 15:38
add a comment |
Can you quote said documentation?
– Ramhound
Jul 13 '15 at 15:38
Can you quote said documentation?
– Ramhound
Jul 13 '15 at 15:38
Can you quote said documentation?
– Ramhound
Jul 13 '15 at 15:38
add a comment |
1 Answer
1
active
oldest
votes
The fact that the device is not connected to a network does not mean that CE agrees with that. It could see the device itself (localhost) as network.
I thought that autorun.inf (not exe) would run from the root of the usb stick, not from a folder. Making this location dependent on the processor type doesn't seem logical. Did you test with autorun in the root? Why should it be different from a CD ROM?
https://support.microsoft.com/en-us/kb/818804
Autorun.inf is a text file that is located in the root folder of your application CD-ROM.
1
You're looking at Windows documentation - WinCE is slightly different.
– Betty Crokker
Jul 21 '15 at 22:15
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f939993%2fcan-windows-ce-6-auto-run-an-application-on-an-inserted-usb-stick%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The fact that the device is not connected to a network does not mean that CE agrees with that. It could see the device itself (localhost) as network.
I thought that autorun.inf (not exe) would run from the root of the usb stick, not from a folder. Making this location dependent on the processor type doesn't seem logical. Did you test with autorun in the root? Why should it be different from a CD ROM?
https://support.microsoft.com/en-us/kb/818804
Autorun.inf is a text file that is located in the root folder of your application CD-ROM.
1
You're looking at Windows documentation - WinCE is slightly different.
– Betty Crokker
Jul 21 '15 at 22:15
add a comment |
The fact that the device is not connected to a network does not mean that CE agrees with that. It could see the device itself (localhost) as network.
I thought that autorun.inf (not exe) would run from the root of the usb stick, not from a folder. Making this location dependent on the processor type doesn't seem logical. Did you test with autorun in the root? Why should it be different from a CD ROM?
https://support.microsoft.com/en-us/kb/818804
Autorun.inf is a text file that is located in the root folder of your application CD-ROM.
1
You're looking at Windows documentation - WinCE is slightly different.
– Betty Crokker
Jul 21 '15 at 22:15
add a comment |
The fact that the device is not connected to a network does not mean that CE agrees with that. It could see the device itself (localhost) as network.
I thought that autorun.inf (not exe) would run from the root of the usb stick, not from a folder. Making this location dependent on the processor type doesn't seem logical. Did you test with autorun in the root? Why should it be different from a CD ROM?
https://support.microsoft.com/en-us/kb/818804
Autorun.inf is a text file that is located in the root folder of your application CD-ROM.
The fact that the device is not connected to a network does not mean that CE agrees with that. It could see the device itself (localhost) as network.
I thought that autorun.inf (not exe) would run from the root of the usb stick, not from a folder. Making this location dependent on the processor type doesn't seem logical. Did you test with autorun in the root? Why should it be different from a CD ROM?
https://support.microsoft.com/en-us/kb/818804
Autorun.inf is a text file that is located in the root folder of your application CD-ROM.
answered Jul 21 '15 at 13:32
SPRBRNSPRBRN
3,21673968
3,21673968
1
You're looking at Windows documentation - WinCE is slightly different.
– Betty Crokker
Jul 21 '15 at 22:15
add a comment |
1
You're looking at Windows documentation - WinCE is slightly different.
– Betty Crokker
Jul 21 '15 at 22:15
1
1
You're looking at Windows documentation - WinCE is slightly different.
– Betty Crokker
Jul 21 '15 at 22:15
You're looking at Windows documentation - WinCE is slightly different.
– Betty Crokker
Jul 21 '15 at 22:15
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f939993%2fcan-windows-ce-6-auto-run-an-application-on-an-inserted-usb-stick%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
Can you quote said documentation?
– Ramhound
Jul 13 '15 at 15:38