PDA

View Full Version : Need a tip



Blasther
02-01-2006, 11:32 PM
Well, it is something very simpe: we need Setup Factory to read the registry to find a specific folder for the install. It is probably very easy but I didn't find how to do this yet.

The registry key to read is:
HKEY_CURRENT_USER\Software\Blizzard Entertainment\Starcraft

Any help would be more than appreciated.

Thanks much!

Adam
02-02-2006, 11:55 AM
Try this:


result = Registry.GetValue(HKEY_CURRENT_USER, "Software\\Blizzard Entertainment\\Starcraft", "MyValue", true);

But you will also have to fill in the "MyValue" with the proper name of the key.

Adam Kapilik

Blasther
02-03-2006, 01:38 AM
Ok sorry for the stupid question but where do I need to add this exactly?

Thanks a lot.

Adam
02-06-2006, 04:03 PM
If you are going to be setting the target install folder using this value then you should put it in the "On Startup" action event.

Adam.