Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Setup / September 2004

Tip: Looking for answers? Try searching our database.

Build problems with Registry keys: ERROR: Invalid characters

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel Hegner - 03 Sep 2004 12:48 GMT
I've been trying to find a solution for this problem without any
success, therefore I'm posting here.

I've created a setup/deployment project in VS.NET 2003 to make a .MSI
containing my application. If I use the VS.NET registry editor to add
a string registry key containing an escaped character within brackets
"[\.]" I get a build error.

Even worse, whenever I add a string value that contains:
"[<something>]" <something> gets replaced by an empty string in the
registry value in the installation.

I know this feature is used by VS.NET to insert project properties
like [Manufacturer] but how do I disable it? I've tried to escape the
'[' and ']' without success.

For instance, adding a regular expression to a registry key in the
VS.NET registry editor:

^([a-zA-Z0-9\.\-])

Results in the build error:
ERROR: Invalid characters '^([a-zA-Z0-9\.\-\s])' in value for registry
value 'RegExp', located in 'HKLM\SOFTWARE\[Manufacturer]\

If I remove all the escaped characters "\.\-\s", it builds but then,
after installation, the registry value will only contain the string
"^()"

Does anyone know how to stop VS.NET from doing this expansion of
registry values containing '[<something>]'?

/Daniel Hegner
Phil Wilson - 03 Sep 2004 20:31 GMT
See if this helps, particularly that 5th bullet.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/forma
tted.asp

Signature

Phil Wilson [MVP Windows Installer]
----

> I've been trying to find a solution for this problem without any
> success, therefore I'm posting here.
[quoted text clipped - 29 lines]
>
> /Daniel Hegner
Daniel Hegner - 06 Sep 2004 08:37 GMT
Thanks Phil, It works.

--
Daniel Hegner

> See if this helps, particularly that 5th bullet.
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/forma
tted.asp

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.