Reputation: 62424
How can I automatically run my C# program after hard-reset or soft-reset on Windows CE?
Upvotes: 1
Views: 1636
Reputation: 2489
[HKEY_LOCAL_MACHINE\init] will not launch your C# app! You should read that article Chris Tacke gave link to.
There is also some ready solutions like AutoLaunch, that you can include in your OS image as a subproject. If you choose this solution, make sure that you have the APIs it is waiting for (check IsNetworkReady()) or it will hang there forever.
Upvotes: 1
Reputation: 17482
in your applications .reg file, add the following:
[HKEY_LOCAL_MACHINE\init] "Launch50"="PlatformStartup.exe" "Depend50"=hex:14,00,1E,00
Source - http://msdn.microsoft.com/en-us/library/aa446914.aspx
Hope that helps!
Upvotes: 1