| Author: viji 08 Jul 2009 | Member Level: Silver | Rating:  Points: 2 |
Hi,
When you are running the application for the first time ,you register your application in the registry key. And when you are running your application further,you just check whether the registry key is available in the registry key and if exist do nothing else create the key.
RegistryKey key = Registry.LocalMachine.OpenSubKey("Software\\TestApplicationRegister"); if (key == null) { Registry.LocalMachine.CreateSubKey("Software\\TestApplicationRegister"); } else { //Do Nothing }
Please rate this answer if it is helpful to you.
Regards, Viji
|