Bernie
Take a look into the XPe docs for these possible options:
- FBA Generic Command resource (at least once you will be able to run
your command)
- FBA Runonce resource (check Run type)
- Use [HKLM\Software\Microsoft\Windows\CurrentVersion\Run] registry
directly
- Consider [HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]
"Shell" or "Userinit" registry entries
- If you have a custom shell, process (run) Startup items from there
using CreateProcess API.
KM
Thanks for your reply.
I need my .exe application to run each time the system boots.
I tried :-
> - Use [HKLM\Software\Microsoft\Windows\CurrentVersion\Run] registry
> directly
but this not cause my application to run(?)
Is there anything you can think of that I may have done wrong?
Bernie
"KM" <konstmor@nospam_yahoo.com> wrote in message
news:uw$r1jhRE...@TK2MSFTNGP10.phx.gbl...
I won't go in to the details why Run is/is not working with minlogon, but I will tell you how I am doing this.
Make your application, or modify this application to start as custom shell and to launch all other application that need to be
started.
This way you will make sure that your application is always started in deterministic way before any other application, and you will
have maximum possible control.
Regards,
Slobodan
PS: User API CreateProcess(...) not shell API.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Have an opinion on the effectiveness of Microsoft Embedded newsgroups? Tell Microsoft!
https://www.windowsembeddedeval.com/community/newsgroups
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Bernie" <be...@fowlerseng.co.uk> wrote in message news:enid5LvR...@TK2MSFTNGP09.phx.gbl...
FBA handles the Run key within a Minlogon image (instead of Explorer). That should work for you.
I have a Minlogon image that launches some apps within Run key.
Does your app require any resources beside Win32 API?
Try to set a simple app to be launched from Run key. Test it, if it works then switch to your app.
--
Regards,
KM, BSquare Corp.
> I won't go in to the details why Run is/is not working with minlogon, but I will tell you how I am doing this.
It does not?
It works perfectly for me (FBA handles the key if no Explorer there).
"is/is not working". Yes that sounds little awkward. I meant to say that I did not wanted to comment on that subject :)
Regards,
Slobodan
"KM" <konstmor@nospam_yahoo.com> wrote in message news:eYfO5lCS...@tk2msftngp13.phx.gbl...
In fact that was what I was doing, I was using netsh.exe, which seems to run
OK from minLogon.
In my case a call to netsh.exe from the "run" registry entry didn't appear
to work.
I tried a custom shell (which works fine), however would prefer the registry
"run" method.
Bernie
"KM" <konstmor@nospam_yahoo.com> wrote in message
news:%23LhoAkC...@TK2MSFTNGP12.phx.gbl...
I guess that you want to call netsh only once, right?
If so have you tried to call it during FBA by "FBA Generic Command"?
Regards,
Slobodan
"Bernie" <be...@fowlerseng.co.uk> wrote in message news:%231GwJjA...@TK2MSFTNGP09.phx.gbl...