How to Configure the Registry to Run an Application at Startup
You can add an application to your platform, and then configure the registry to run the application when your platform boots. By doing so, you can decrease the amount of time involved in debugging an application. Otherwise, after your platform boots, you have to manually load and run the application on your target device.
Note The steps in this procedure are written under the assumption that you have already created an application. For information about creating and building an application in the context of using Platform Builder with a CEPC, see Tutorial: Using Platform Builder with a CEPC.
To track your progress, select the check box next to each step.
Step | Topic | |
---|---|---|
1. Open an existing platform, or create a new platform, and then build and download the run-time image to a target device. | How to Use the IDE to Create, Customize, and Build a Platform | |
2. Use the Remote Registry Editor to discover the HKEY_LOCAL_MACHINE\Init launch numbers for each executable (.exe) file that runs on the target device at startup.
To run your application at startup, you must assign launch numbers to your application's .exe files in the HKEY_LOCAL_MACHINE\Init section of the registry of the target device.
|
Opening Remote Registry Editor | |
3. Add the application to your platform as a project. | Adding an Existing Project to a Platform | |
4. Create a registry entry in the HKEY_LOCAL_MACHINE\Init section of the Project.reg file for your application. | Configuring a Registry File to Run an Application at Startup | |
5. Build the changed features in your platform. | Building a Platform | |
6. Configure a connection between your development workstation and your target device.
Note Debugging is not necessary at this point. If your target device is a CEPC, you must boot your OS image on the CEPC. For more information, see How to Boot an OS Image on a CEPC. If your target device is the Emulator, you must download your platform to the Emulator. For more information, see Downloading an OS Image to the Emulator. |
Configuring a Connection for Downloading and Debugging | |
7. Once the download process is complete, verify that the application has launched properly on your target device.
The time required to display the OS is dependent on the size of the downloaded platform. |
Not applicable |
See Also
Platform Development How to Topics | Remote Registry Editor | Registry | Project Creation
Last updated on Friday, October 08, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.