RE: Bug in VS .NET 2003 CustomActionData quoting behavior?

From: David Guyer [MS] (davguy_at_online.microsoft.com)
Date: 03/25/04


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
>


Relevant Pages

  • MSDE 2000 SP4 install gets to very end then rolls it all back
    ... On most machines my msde install goes fine. ... exuisting SQL server. ... Starting custom action SaveSqlServerServiceStates() ... Action start 14:23:53: RegisterClassInfo. ...
    (microsoft.public.sqlserver.setup)
  • Installation operation failed: event ID 11708
    ... Microsoft SQL Server Desktop Engine -- Installation operation failed. ... when i try to install the msde by using SqlSetup.exe and use the verbose logging flags ... MSI: Executing op: ... MSI: Invoking remote custom action. ...
    (microsoft.public.sqlserver.msde)
  • RE: InstallUtilLib & EIF
    ... calling it from a custom action in the msi. ... InstallutilLib.dll that is unable to do the install. ... Use of included script samples are subject to the terms specified at ...
    (microsoft.public.vsnet.enterprise.tools)
  • RE: VS Setup project: detect install folder automatically?
    ... There was a key in the registry that pointed to the install ... 2)Create a custom action assembly, ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.vsnet.general)
  • Re: Instal flow and custom actions
    ... Install custom actions are called after all the files have been installed, ... it needs to put on the deployment machine (I set these on the File ... custom action that I created to to some additional stuff. ... to know is exactly when is the install method executed? ...
    (microsoft.public.dotnet.framework.setup)