I'm still not sure why you are performing a hard reset instead of just a soft reset to fix any freezes, glitches that you encounter. The easiest way would be to find a way to prevent the necessity of hard resets.
------------------------
In any case, when you install a program to your iPaq from an exe on your computer, you will be prompted where to save it. The default location is in the RAM, which will be cleared if the battery dies or a hard reset is performed. You can change this to either a memory card (as long as one is inserted while you're performing the installation) or to built-in storage. (ROM is where the OS is installed to, and the built-in storage is the remaining free space.) In either location, the data stored will not be erased by a dead battery or hard reset.
* Memory cards are NOT password-protected, so it's best to either not store personal/private data there, or use an encryption utility. (Such as AirScanner Mobile Encrypter, which is free for private use.)
* ROM is password-protected, but has an exception...when a hard reset is performed (or the battery dies), the password and all data in the RAM is erased, but the data in ROM remains. Since the password is gone, the ROM is left unprotected. Thus, it's best to follow the same security precautions as you do with memory cards.
------------------------
Now, by installing a program to one of these two locations, its ''protected'' from deletion. However, there are two catches:
* Some programs store required files throughout the PDA, not just in the program folder. Also, some programs may have serious problems is installed anywhere but the default directory. (I've had problems with Resco Keyboard, where the program stopped working, preventing me from using a software-based keyboard to enter my password. Major problem!) Thus, you'll find that you can't do this with all programs. (Experiment first, keeping a backup of all files until you discover any/all incompatibilities.)
* A good majority of the programs available rely on the registry to operate. The registry is stored in RAM, and will be erased, so although the program is still installed on the storage card, it won't work properly. To avoid this problem, download TRE, which is a free registry editor for the PPC. Using this program you'll be able to back up your registry (export to the storage card), then import it after the hard reset. (TRE can be installed to ROM or storage card, although I recommend using default RAM, then reinstalling it after a hard reset.) Again, this won't work for all programs, but I've had little problems with it.
Hope this helps,
John