Thanks John, I’m looking into doing something similar.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Crouch, John
Sent: Wednesday, October 18, 2006 10:32 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] uninstall: removing elements added by <xmlfile>

 

Stephen,

There were some challenges to over come with xmlfile about amonth ago – I forget the bug trackinh numbers but I too had many problems uninstalling xml for web, exe and machine.config files.  I gave up and used a customaction vbs – to my eternal shame.

 

br

John Crouch
Software Engineer/Developer

National Oilwell Norway AS

This message, including any attachments, is intended only for the addressee and may contain privileged or confidential information. Any unauthorized disclosure is strictly prohibited. If you receive this message in error, please notify us immediately so that we may correct our internal records. Please then delete the original message. Thank you.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Turton
Sent: Wednesday, October 18, 2006 8:54 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] uninstall: removing elements added by <xmlfile>

 

Hi,

I want to add some config handlers to machine.config during setup so I’m using <xmlfile>.

This works fine when I install: the expected elements are added to machine.config. However, I want these elements to be removed when I uninstall and I can’t figure out how to do this. My <xmlfile> component looks like this:

 

          <Component Id='MyComp' Guid='4406c78a-0b49-4b0b-b63a-e088089d50ca' Permanent='no'>

                <XmlFile  Id='topElement'

                      File='C:\test.xml'

                      Action=''

                      Name='topElement'

                      Sequence='1'

                      Permanent='no'

                      ElementPath='//configuration'/>

                <XmlFile  Id='extensions'

                      File='C:\test.xml'

                      Action=''

                      Name='extensions'

                      Sequence='2'

                      Permanent='no'

                      ElementPath='//configuration/topElement'/>

            </Component>

 

Am I doing something wrong here? (apart from writing to C:\test.xml – I’m not quite ready to actually edit my machine.config file yet)

 

 

Thanks,

Stephen

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to