Jan Bouma
Posts: 33
Joined: Fri Jul 13, 2007 11:27 am

The "{" character

I have to place a "{" in a registry value.
-x tcpip{host=srv06;port=1010}

When i a directly put this in a Registry value and run the msi the "{" and the "}" apear in the registry.

But when i use properties like this one:
[Runtimer_DIR][P_DB_ENGPRG] -x [P_DB_CONTYPE]{Host=[P_DB_SERVERHOST];ClientPort=[P_DB_SERVERPORT]} [P_DB_SERVERNAME]

the "{" and the "}" disapear.

do you have a solution ?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: The "{" character

Hi,

You are encountering this behavior because of the way the formatted fields work in Windows Installer. Basically, the "{" and "}" characters are reserved, therefore you need to escape them. For example, a correct entry would be:

Code: Select all

[Runtimer_DIR][P_DB_ENGPRG] -x [P_DB_CONTYPE][\{]Host=[P_DB_SERVERHOST];ClientPort=[P_DB_SERVERPORT][\}] [P_DB_SERVERNAME]
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jan Bouma
Posts: 33
Joined: Fri Jul 13, 2007 11:27 am

Re: The "{" character

Again thanks for your quick response and help !

Return to “Common Problems”