I traced it down to the fact that I have two components each one with
its own .config file and XmlFile actions:

<Component Id="Component1" Guid="5E8AF024-F2E9-4A85-A0E9-FA098D12F585">
  <File Id="Component1Config"
        Source="Component1.exe.config" />
  <util:XmlFile Id="Component1LogDirectory"
                Action="setValue"
                ElementPath="/configuration/diagnostics"
                File="[INSTALLDIR] Component2.exe.config"
                Name="logDirectory"
                SelectionLanguage="XPath"
                Value="[APPDATALOGS]" />
</Component>

<Component Id="Component2" Guid="A4AD9AC4-C073-49B8-BF17-AFA4DB61CCB1">
  <File Id="Component2Config"
        Source="Component2.exe.config" />
  <util:XmlFile Id="Component2LogDirectory"
                Action="setValue"
                ElementPath="/configuration/diagnostics"
                File="[INSTALLDIR]Component2.exe.config"
                Name="logDirectory"
                SelectionLanguage="XPath"
                Value="[APPDATALOGS]" />
</Component>

If I remove either of XmlFile actions then uninstall works.


-----Original Message-----
From: Alex Ivanoff [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 19, 2008 18:20
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] The Component element contains anunexpected
childelement 'XmlFile'

Ok, XmlFile works, but now I have a problem on uninstall. I get this
error

MSI (s) (3C:D0) [18:02:50:852]: Invoking remote custom action. DLL:
C:\WINDOWS\Installer\MSI28.tmp, Entrypoint: ExecXmlFileRollback
ExecXmlFileRollback:  Error 0x80070003: failed to open file: C:\Program
Files (x86)\MyProgram\MyService.exe.config

and uninstall rollbacks. What am I doing wrong? And how do I force
uninstall?


-----Original Message-----
From: Alexander Shevchuk [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 19, 2008 13:36
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] The Component element containsan
unexpectedchild element 'XmlFile'

You need to add/change the following:

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>

and

<util:XmlFile></util:XmlFile>

There are some changes in the syntax of WiX from 2.0 to 3.0.  You need
to invest some time in reading 3.0 help file.




-----Original Message-----
From: Alex Ivanoff [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 19, 2008 11:29 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] The Component element contains an
unexpectedchild element 'XmlFile'

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
        <Product Id="d73e8ae0-7480-4fd5-abf2-f88648d6f12f"
Name="WixProject1" Language="1033" Version="1.0.0.0"
Manufacturer="WixProject1"
UpgradeCode="fcf023ba-5b06-4d02-b59e-7aa38e86f6a4">
                <Package InstallerVersion="200" Compressed="yes" />

                <Media Id="1" Cabinet="WixProject1.cab" EmbedCab="yes"
/>

                <Directory Id="TARGETDIR" Name="SourceDir">
                        <Directory Id="ProgramFilesFolder">
                                <Directory Id="INSTALLLOCATION"
Name="WixProject1">
                                        <Component Id="ProductComponent"
Guid="8D7C768B-B683-451E-A145-AD50211FBDF1">
                                                <File Id="Settinds">
                                                </File>
                                                <XmlFile></XmlFile>
                                        </Component>
                                </Directory>
                        </Directory>
                </Directory>

                <Feature Id="ProductFeature" Title="WixProject1"
Level="1">
                        <ComponentRef Id="ProductComponent" />
                </Feature>
        </Product>
</Wix>

-----Original Message-----
From: Rob Mensching [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 19, 2008 12:43
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] The Component element contains an
unexpectedchild element 'XmlFile'

Can you provide a bit more of your authoring?

-----Original Message-----
From: Alex Ivanoff [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 18, 2008 12:11
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] The Component element contains an unexpected child
element 'XmlFile'

Build 3.0.4617.0, just created a new VS 2008 project, added
WiXUtilExtension and tried to use XmlFile:

error CNDL0005: "The Component element contains an unexpected child
element 'XmlFile'"



------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge Build the coolest Linux based applications with Moblin SDK &
win great prizes Grand prize is a trip for two to an Open Source event
anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge Build the coolest Linux based applications with Moblin SDK &
win great prizes Grand prize is a trip for two to an Open Source event
anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge Build the coolest Linux based applications with Moblin SDK &
win great prizes Grand prize is a trip for two to an Open Source event
anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge Build the coolest Linux based applications with Moblin SDK &
win great prizes Grand prize is a trip for two to an Open Source event
anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge Build the coolest Linux based applications with Moblin SDK &
win great prizes Grand prize is a trip for two to an Open Source event
anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to