RE: Bug in VS .NET 2003 CustomActionData quoting behavior?
From: David Guyer [MS] (davguy_at_online.microsoft.com)
Date: 03/25/04
- Next message: David Guyer [MS]: "Re: using Context.Parameters["INSTALLDIR"],"
- Previous message: Phil Wilson: "Re: [$ComponentName] =4 ?????"
- In reply to: dcaldwell: "RE: Bug in VS .NET 2003 CustomActionData quoting behavior?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 25 Mar 2004 20:29:35 GMT
I tried to follow your repro steps exactly as you posted them... but it is
not unlikely that I made a small difference that turned out to be
significant. Hopefully the idea I posted before will help you work around
the problem.
--- David Guyer - VBQA Deployment Testing This posting is provided "AS IS" with no warranties, and confers no rights. -------------------- >Thread-Topic: Bug in VS .NET 2003 CustomActionData quoting behavior? >thread-index: AcQCPUuVp1x2xYkCQ6CUcz07ack4FQ== >X-Tomcat-NG: microsoft.public.dotnet.framework.setup >From: =?Utf-8?B?ZGNhbGR3ZWxs?= <anonymous@discussions.microsoft.com> >References: <E9651E8A-631B-4417-9239-646FF3D9CD40@microsoft.com> <Sis9R3K$DHA.3200@cpmsftngxa06.phx.gbl> >Subject: RE: Bug in VS .NET 2003 CustomActionData quoting behavior? >Date: Thu, 4 Mar 2004 15:06:15 -0800 >Lines: 21 >Message-ID: <D92CC994-0E0C-4600-BE1C-7DB937054FCB@microsoft.com> >MIME-Version: 1.0 >Content-Type: text/plain; > charset="Utf-8" >Content-Transfer-Encoding: 7bit >X-Newsreader: Microsoft CDO for Windows 2000 >Content-Class: urn:content-classes:message >Importance: normal >Priority: normal >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 >Newsgroups: microsoft.public.dotnet.framework.setup >Path: cpmsftngxa06.phx.gbl >Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.setup:7387 >NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180 >X-Tomcat-NG: microsoft.public.dotnet.framework.setup > >Hi, I tried this again and looked a little deeper. Here's what I did and saw along the way: VisualStudio .NET 2003 Custom action implemented in C# LoadDB.dll; overrides System.Configuration.Install.Installer.Install method CustomAction property = /test=" -t \"<blah>\n\\n\"" created a merge module that includes LoadDB.dll and added it as a custom action to the Install folder in the custom actions editor Called System.Diagnostics.Debugger.Break() 1st thing in the Install method, followed by string test = Context.Parameters["test"]; broke; stepped over test; debugger showed test variable contents = " -t \"<blah>\\n\\n\"" Using orca, I looked at the CustomActions table in the msm and the msi (produced with InstallShield). In both tables, I saw the correct thing: /test=" -t \"<blah>\n\\n\"" So I take back what I said earlier about possible GUI problems. It now appears to me that it's a problem with Windows Installer or the mechanism it uses to invoke the custom action. Somewhere in the process of consuming the msi CustomAction table data and plopping it into the Context.Parameters collection, the difference between "\n" and "\\n" was lost. Is anything I did significantly different that what you did to try and reproduce the problem? I'm guessing you didn't use InstallShield, but since the data in the msi is still correct, I'd say how you produce the msi doesn't matter. Thanks, David >
- Next message: David Guyer [MS]: "Re: using Context.Parameters["INSTALLDIR"],"
- Previous message: Phil Wilson: "Re: [$ComponentName] =4 ?????"
- In reply to: dcaldwell: "RE: Bug in VS .NET 2003 CustomActionData quoting behavior?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|