Hi,
You could just do a GetSetting() and check for an error(if the registry entry was not created yet). If the entry wasn't created yet, set it to 1, otherwise add 1 to it.
Basically remove the setting of the entry to 1 everytime you start the program.
Let me know if that doesn't answer your...