rpul » Mon Aug 02, 2010 3:05 amCredit : rpul
Project: starterRequirements: device with WinCE
Operating System: WinCE
Overview: Configurable startup utility
More Info:I wrote this small utility for my Becker z103, but it can be used on any other WinCE device.
What it does?
It will search for the applications from the provided list, and run the first found.
In other words I use it to do the following - if SD card is inserted it will start the software from the SD card. If no card is inserted - it will run original Becker soft from the internal memory.
I replaced the original Becker's NNGStart.exe with this one, so that the device will run this automatically at start up.
Application consists from two files - one exe (name of the exe does not matter, and you will probably adapt it to your needs), and
starter.ini file.
All the settings are to be done in
starter.ini file.
There are two sections in the file.
In
section you can provide the list of apps to be run by this program.
App0 is the one with highest priority,
App9 is the one with the lowest priority.
Starter will look for
App0. If found it will run it and it will quit it self from the memory.
If
App0 is not found, it will search for
App1 and so on.
If you need to run 2 or 3 apps in parallel (e.g. GPSGate + Navigation app) you can specify
App0 ,
App0a and
App0b if needed.
Example starter.ini:
This is my current
starter.ini It is configured for different SD cards.
So, it will search for x103.exe on the SDcard. If found - it will run it and quit itself.
If not found, it will search for the next item from the list, try to run it etc. etc.
At the end, if none found, it will run original Becker software (
App9 ).
Example with parallel runs:
In this example, starter will search for GPSGate.exe on the SDCard. If found it will run it and search further for VolumeControl.exe and x103.exe and run these too.
If the
App0 item is not found, no further search is done for
App0a and
App0b items.
Subitems are supported for other items too (
App1 +
App1a +
App1b etc.)
Next section in the
starter.ini file is
[Delay] section. It specifies the delay to run the Application from
section. This was (at least for me) needed. Some software will not start immediately after turning on the device. E.g. MN 7.4.x will not run on Becker z103 without a delay from 2-3 seconds after the device start. It will give application error.
Probably some part of the system needs some time to initialize, dunno..
The syntax of
[Delay] section is as following:
So, it is the same like for
section. Value is the delay in seconds.
For subitems the delay is counted one after another.
App0a=2 means it will run 2 seconds after
App0,
App0b=1 means 1 second after
App0a.
Download Links/Instructions:http://www.m.../?d=P3O79Y13