Hi Brian,

I think the reason your doesn't work is because you don't create the <add/>
under <handlers/> before you try and set values (I've assumed you don't
deploy with an empty <add/>).

The following is something that i use to add <Extension Name="MyName"
Type="SomeType"/> under "//Configuration/Extensions/Data" (and remove it on
an uninstall).

<Fragment>
    <DirectoryRef Id="INSTALLLOCATION">

      <Component Id="RSReportServerSQLFEDAUTHDataExtension" Guid="GUID"
Win64="yes">
        <util:XmlConfig Id="RSReportServerSQLFEDAUTHDataExtension"
                        On="install"
                        Action="create"
                        Sequence="1"
                        File="[INSTALLLOCATION]rsreportserver.config"
                        ElementPath ="//Configuration/Extensions/Data"
                        VerifyPath
="//Configuration/Extensions/Data/Extension[\[]@Name='MyName'[\]]"
                        Node="element"
                        Name="Extension"
                        />
        <CreateFolder/>
      </Component>
      
      <Component Id="RSReportServerSQLFEDAUTHDataExtensionName" Guid="GUID"
Win64="yes">
        <util:XmlConfig Id="RSReportServerSQLFEDAUTHDataExtensionName"
                        Sequence="2"
                        File="[INSTALLLOCATION]rsreportserver.config"
                        ElementId ="RSReportServerSQLFEDAUTHDataExtension"
                        VerifyPath
="//Configuration/Extensions/Data/Extension[\[]@Name='MyName'[\]]"
                        Name="Name"
                        Value="MyName"
                        />
        <CreateFolder/>
      </Component>

      <Component Id="RSReportServerSQLFEDAUTHDataExtensionType" Guid="GUID"
Win64="yes">
        <util:XmlConfig Id="RSReportServerSQLFEDAUTHDataExtensionType"
                        Sequence="3"
                        File="[INSTALLLOCATION]rsreportserver.config"
                        ElementId ="RSReportServerSQLFEDAUTHDataExtension"
                        VerifyPath
="//Configuration/Extensions/Data/Extension[\[]@Name='MyName'[\]]"
                        Name="Type"
                        Value="MyValue"
                        />
        <CreateFolder/>
      </Component>   
      
      
      <Component Id="RSReportServerSQLFEDAUTHDataExtensionUninstall"
Guid="GUID" Win64="yes">
      <util:XmlConfig
                    Id="RRSReportServerSQLFEDAUTHDataExtensionUninstall"
                    File="[INSTALLLOCATION]rsreportserver.config"
                    Action="delete"
                    Node="element"
                    VerifyPath="Extension[\[]@Name='MyName'[\]]"
                    ElementPath="//Configuration/Extensions/Data"
                    On="uninstall"
                    Sequence="1" />
        <CreateFolder/>
      </Component>
    </DirectoryRef>
  </Fragment>

Hope that helps,
James



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/When-to-call-CustomAction-tp7597407p7597454.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to