This defines settings for SD memory cards. This includes setting the folder name to be "Storage Card" when a user inserts a storage card. But you want the users to more clearly know that the folder is the SD memory card, so you want the folder to be "SD Card". In project.reg add the following:
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SDMemory]
"Folder"="SD Card" ; change the name to SD Card
When the registry files are merged to create reginit.ini, the project.reg settings will be closer to the bottom of the file than are the settings in common.reg, so the folder name will be "SD Card".
Deleting Values in the Registry
You can also delete values, using:
"Value Name"=-
[HKEY_LOCAL_MACHINE\init]
"Launch50"="explorer.exe"
"Depend50"=hex:14,00, 1e,00
Which defines that the explorer shell, or desktop, is to be started when the system starts. You want to include the explorer shell, but you don't want it to start automatically because your app will be a kiosk type
application, but you do want your service people to be able to start the desktop to make changes to the system. To do this add the following to your project.reg:
[HKEY_LOCAL_MACHINE\init]
"Launch50"=-
"Depend50"=-
When the registry files are merged, reginit.ini will have the deletion entries later than the insertion entries, so explorer.exe will not automatically start.
The delete value entry can also be used to remove messages in makeimg. The example of changing Storage Card to SD Card will produce this message:
regcomp: Overwriting existing value [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SDMemory] "Folder" in system registry
This message can be avoided by adding:
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SDMemory]
"Folder"=- ; remove message from makeimg output
"Folder"="SD Card" ; change the name to SD Card
Deleting Keys in the Registry
You can delete keys, using:
[-key name]
Example of deleting a key by adding the following to project.reg:
; Shut off the FTP server
[-HKEY_LOCAL_MACHINE\Services\FTPD]
[-HKEY_LOCAL_MACHINE\COMM\FTPD]
the FTP server will not be started. I used this one to satisfy a requirement to include the FTP server, but to not have it automatically start when the system boots.
Getting your changes into the OS Image
Now that you have edited the registry file, you will need to build the changes into the registry within the OS image. To do this you will first need to copy the changed file to the _FLATRELEASEDIR. The easiest, but slowest way to copy the file is to run buildrel (from the Platform Builder menu "Copy files to Release Directory"), but you can also use Windows Explorer or any other method to copy the changed file.
Once your changed registry file is in the _FLATRELEASEDIR, run makeimg (from the Platform Builder menu "Make Run-time Image".)
Copyright © 2008 – Bruce Eitman
All Rights Reserved