Hi all,
I'm working on an installer for an expansion module.
The installer should determine if the main application is already installed on the system by searching for a registry value in:
"HKEY_LOCAL_MACHINE\\Software\\My Product"
The value in question is stored in "Installed Path"
-------------------
What i'm looking for is an if statement that will check to see if the value exists in the registry. If it does not exist, it will popup a message box then exit. If it DOES exist, it will set %AppFolder% as the registry value.
Here's what i want:
SessionVar.Set("%AppFolder%", Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\My Product", "Installed Path", true));
I've tried some different IF statements but so far unsuccessful.
Any help would be much appreciated!
Thanks alot!

Reply With Quote
