Thank you for pointing out my typo. Once that is fixed I still get the same
result. To answer Simon's questions:

 

1)      I have both in the installation. This allows me to "test" things
like editing the XML without affecting the "real" configuration file.

2)      The full blown configuration file is based on a debug build. For a
release build I want to remove the diagnostic section "on install". It seems
easier to start with a debug configuration file and trim out the sections
not needed or desired in a release build than adding in those sections for a
debug build. Just a choice.

 

So now the syntax looks like:

 

<XmlConfig Id="ConsoleAppConfig14" Action="delete"
ElementPath='//configuration/system.diagnostics'
File="[CONSOLEINSTALLDIR]app.Config" Node="element" On="install"
Sequence="14" VerifyPath='New' />

 

Thanks again.

 

Kevin

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thomas Leigh
Sent: Monday, April 23, 2007 11:04 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Remove a section using XmlFile[Scanned]

 

I'm sure this isn't your problem but.

Shouldn't the ElementPath value have an A in it (system.diagnostics)

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Simon
Dahlbacka
Sent: 23 April 2007 16:41
To: Kevin Burton
Cc: Bob Arnson; Rob Mensching; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Remove a section using XmlFile[Scanned]

 

Nb. I don't actually know anything about xmlconfig, just pointing out things
that seemed strange

1) is the configuration *still* called app.config and not foo.exe.config?
2) "delete" on "install" seems strange 

/Simon

On 4/23/07, Kevin Burton <[EMAIL PROTECTED]> wrote:

My XmlConfig does not seem to work. It doesn't delete the section or the
whole node. I don't get a warning or an error. Just what was supposed to be
deleted is not. This is the XmlConfig line that I am using:

 

<XmlConfig Id="ConsoleAppConfig14" Action ="delete"
ElementPath='//configuration/system.dignostics'
File="[CONSOLEINSTALLDIR]app.Config" Node="element" On="install" Sequence
="14" VerifyPath='New' />

 

Is this syntax correct? Is it possible that in replacing the wix.targets
file with an earlier version that it could have caused this command to
silently fail?

 

Thank you for your patience.

 

Kevin

From: Bob Arnson [mailto: <mailto:[EMAIL PROTECTED]>  [EMAIL PROTECTED] 
Sent: Sunday, April 22, 2007 9:11 PM
To: Kevin Burton
Cc: 'Rob Mensching'; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Remove a section using XmlFile

 

Kevin Burton wrote: 

    OutputFile=<!-- Example, obj\Debug\MySetup.wixobj -->

 
@(Compile-&gt;'..\PACKAGE\WiX_Temp\Release\%(Filename).wixobj')


There's a difference in either your project file or the WiX MSBuild project.
I've never used the WiX v2 MSBuild support so I can't offer any advice on
it. I'd start by verifying that everything works as you'd expect from a
simple command-line build.

-- 
sig://boB
http://bobs.org


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now. 
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list 
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-- This message has been scanned for viruses by Sophos PureMessage. 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to