Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

issues with special characters in ProductName property

13 views
Skip to first unread message

vizagboy

unread,
Nov 9, 2009, 12:42:01 PM11/9/09
to
I am using VS 2005 setup and deployment project. When I try to set the
Product Name to A&B, it is failing to escape. Changing the Product Name to
A&&B fixed the display of the ProductName, but the Title on the installation
screens and the display name in Add/Remove Programs is messed up. Can someone
explain how to escape the special characters in VS2005?

For your information, if I try the same in VS 2008, it works good. However,
we cannot upgrade to VS2008 right now.

Thanks

Kalle Olavi Niemitalo

unread,
Nov 9, 2009, 6:10:14 PM11/9/09
to
vizagboy <viza...@discussions.microsoft.com> writes:

> I am using VS 2005 setup and deployment project. When I try to
> set the Product Name to A&B, it is failing to escape. Changing
> the Product Name to A&&B fixed the display of the ProductName,
> but the Title on the installation screens and the display name
> in Add/Remove Programs is messed up. Can someone explain how
> to escape the special characters in VS2005?

I'm not really familiar with setup and deployment projects in VS2005
but the symptoms seem like msidbControlAttributesNoPrefix is missing
from some controls that have [ProductName] in Control.Text.
If VS2005 generates an *.msi file for you, perhaps you can add the
missing attribute as a post-build step. However, if VS2005 also
wraps the *.msi in an *.exe, postprocessing becomes harder.

Wilson, Phil

unread,
Nov 10, 2009, 3:21:24 PM11/10/09
to
I've seen this before and haven't been able to fix it. The issue is that the
& is used as a keyboard shortcut indicator, just like it is in Windows UI
programming. &Next means N is the key, swallow the & and don't display it.
There should be a way, I just haven't found it. Docs indicate that [\&]
should escape the & and show it properly, but alas no.

--
Phil Wilson
The Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972


"vizagboy" <viza...@discussions.microsoft.com> wrote in message
news:8A6EB556-F040-4888...@microsoft.com...

0 new messages