Description
WinNUT preferences are stored in the User Registry hive. This is a self-rolled solution that requires the user to venture into their Registry when required to access the preferences manually or clear them out. To take advantage of the more easily manageable and integrated system, we can use the .Net Application Settings system. This will be a multi-part project:
- Modify the startup routine to check for existing registry entries. If they exist, run the migration wizard/dialog. At the end of the process, flip a setting indicating that the user was prompted before.
- Modify all project references to the registry keys, and use the new settings system.
- Remove the old 1.x INI import system (the last pre-release of WinNUT will be the last one to support it)
- Remove the migration wizard and all code relating to the old Registry system #115
Registry/Preferences migration dialog
WinNUT will have added a new dialog (structured with new-to-WinNUT DataBinding
, BackgroundWorker
and MVC/MVP design patterns) that will assist the user with migrating to the standard .Net Application Settings system. References to the old system of registry preferences will be removed throughout WinNUT except as to assist the migration dialog. The migration dialog will support operations of importing, backing up (to .REG file) and deleting the old preference Registry keys. If the user opts to cancel or do nothing, then the old Registry keys will be left alone and a fresh copy of settings will be used instead. This dialog will only be displayed once as long as the new settings remain intact.
Please provide any feedback about this below.