PDA

View Full Version : Registry problem - need to enclose value in square brackets



AlexLee
04-27-2004, 04:29 AM
I am setting up a registry section for DDE, and one of the values I need to set is:
[open("%1")]

When I check the registry after the installer has run, the value is actually:
[\[]open("%1")[\]]

So my question is how do I write the [ and ] characters ?? The help is not so helpful here...

Thanks,
Alex

djdetlor
05-12-2005, 06:53 PM
The help on this says that you are supposed to use

[\[]open("%1")[\]] for Windows Installer projects. It does not say what to do with Installscript projects.

Anyone else have a solution to this problem?

Darcy

Yorkie
05-13-2005, 03:52 AM
In InstallScript I think you can set it like this:

RegDBSetKeyValueEx(szKey, szName, REGDB_STRING, "[open(\"%1\")]" , -1);

Andy York
Product Developer, Macro 4 plc