Arucard
03-13-2004, 11:40 PM
What I want to do sounds simple enough but I can't seem to get it to work. What I have is three options. Install, Run, and Quit.
Quit runs fine, but it's the other two I'm having problems with.
I want Install to only be active if the program isn't installed, and I want run to only be activated when the program is installed. So of course I want this to take effect as soon as the screen appears.
Problem is although it may sound really simple I can't seem to get it to work. I've tried using installed = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\company name\\program name")
to store the detect if the program is installed since it'll leave it's reg key in there if it's installed. But no matter what I do from there I have no luck. Any ideas? or an easier way? Thanx
Quit runs fine, but it's the other two I'm having problems with.
I want Install to only be active if the program isn't installed, and I want run to only be activated when the program is installed. So of course I want this to take effect as soon as the screen appears.
Problem is although it may sound really simple I can't seem to get it to work. I've tried using installed = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\company name\\program name")
to store the detect if the program is installed since it'll leave it's reg key in there if it's installed. But no matter what I do from there I have no luck. Any ideas? or an easier way? Thanx