We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

rdieter
Posts: 3
Joined: Thu Mar 17, 2005 11:56 pm

can't use dde in Registry/file associations

I'm packaging an app that includes for file association purposes (in HKLM):

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Foo.Document\shell\open]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Foo.Document\shell\open\command]
@="C:\\App\\foo.EXE /dde"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Foo.Document\shell\open\ddeexec]
@="[open(\"%1\")]"

When trying to import these into Advanced Installer's Registry section (I'm using version 2.5.1), I receive the error:

Exception: Invalid MSI identifier string [open("%1")]
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

Hello,

The "[" and "]" characters have a special meaning in Windows Installer fields: they mark a reference to a property, file or folder. To insert them in text, you need to escape them like this:
[ -> [\[]
] -> [\]]

Regards,
Cata
Last edited by Cata on Sun Mar 20, 2005 2:19 pm, edited 1 time in total.
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rdieter
Posts: 3
Joined: Thu Mar 17, 2005 11:56 pm

workaround only, perhaps AI should also escape?

OK, thanks. That's a workaround for manually entering registry information.

However, I still get the error when trying to import existing registry data using the "Add Key" or "Add Values" functions in Project Definition -> Registry. Perhaps Advanced Installer should also realize the need to escape this when attempting to use Add Key/Values.

Return to “Common Problems”