Hi!

I tried setting Before="CostInitialize" but I still have the same problem, I
have submitted the compete WIX-file below, maybe I'm doing something else
wrong?
/Hans
----------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>
  <Product Id="ae0f7f5c-a729-4dcf-bc4a-c4f72f657930" Name="A GDP Package"
Language="1033" Version="1.0.0" Manufacturer="XXXX"
UpgradeCode="b7d5c8ed-60fe-4cab-83f7-4844f0a8cbc2">
    <Package Description="This is a description" Comments="This is a
comment." InstallerVersion="200" Compressed="yes" />
    <Media Id="1" Cabinet="Product.cab" EmbedCab="yes" />
    <Feature Id="ImageFilesFeature" Title="Image Files" Level="1">
      <ComponentRef Id="Component3" />
      <ComponentRef Id="Component5" />
    </Feature>
    <Feature Id="CategoryFilesFeature" Title="Category Files" Level="1">
      <Condition Level="0"><![CDATA[UPGRADE = "yes"]]></Condition>
      <ComponentRef Id="Component1" />
      <ComponentRef Id="Component2" />
    </Feature>
    <Feature Id="ArcGisFilesFeature" Title="ArcGis Files" Level="1">
      <Condition Level="0"><![CDATA[ARCGIS = "no"]]></Condition>
      <ComponentRef Id="Component4" />
    </Feature>
    <Property Id="PYTON">c:\temp\Pyton.exe</Property>
    <Property Id="PACKAGE_VERSION">"0.0.0.0"</Property>
    <Property Id="PACKAGE_NAME">"A package name"</Property>
    <Property Id="PACKET_XML_FILE">"Package.xml"</Property>
    <Property Id="XXXX_UNC_PATH">#</Property>
    <CustomAction Id="LaunchPyton" Property="PYTON" ExeCommand="#
[XXXX_UNC_PATH] # # #" Return="check">
    </CustomAction>
    <CustomAction Id="GettingXmlValue" BinaryKey="GetXmlValue"
DllEntry="GetXmlValue" />
    <InstallExecuteSequence>
      <Custom Action="GettingXmlValue" Before="CostFinalize"> NOT
Installed</Custom>
      <Custom Action="LaunchPyton" After="InstallFinalize"> NOT Installed
AND ARCGIS = "yes"</Custom>
    </InstallExecuteSequence>
    <Binary Id="GetXmlValue" SourceFile="Binary\GdpCustomActions.dll" />
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="PACKAGE_PATH">
        <Directory Id="Directory1" Name="MyCategory">
          <Component Guid="57595a0a-4e3d-4fa5-9cfa-742929d1f51e"
Id="Component1">
            <File Id="File1" Name="MyCategory.p" Source="MyCategory.p"
DiskId="1" />
          </Component>
        </Directory>
        <Component Guid="dc642deb-abcd-4623-827f-b2f600a8f547"
Id="Component2">
          <File Id="File2" Name="XMyCategory.xml" Source="XMyCategory.xml"
DiskId="1" />
          <util:XmlFile Id="XmlModification1" File="C:\Program Files\Common
Files\GeoSE\Sverige\XMyCategory.xml" ElementPath="/GeodataPack" Name="Name"
Value="[PACKAGE_NAME]" Action="setValue" Permanent="no" Sequence="1" />
          <util:XmlFile Id="XmlModification2" File="C:\Program Files\Common
Files\GeoSE\Sverige\XMyCategory.xml" ElementPath="/GeodataPack"
Name="Version" Value="[PACKAGE_VERSION]" Action="setValue" Permanent="no"
Sequence="1" />
        </Component>
      </Directory>
      <Directory Id="CATEGORY_PATH">
        <Directory Id="Directory2" Name="MyCategory">
          <Directory Id="Directory3" Name="RT90_2_5gonW">
            <Component Guid="2b84e36d-e650-4fc6-b9c1-f18cca80a95c"
Id="Component3">
              <File Id="File3" Name="23j0g.ecw" Source="C:\Documents and
Settings\haol\Desktop\test\23j0g.ecw" DiskId="1" />
            </Component>
          </Directory>
        </Directory>
      </Directory>
      <Directory Id="Directory4" Name="Projects">
        <Directory Id="Directory5" Name="GeographicalDataPackager">
          <Directory Id="Directory6" Name="Trunk">
            <Directory Id="Directory7" Name="GeographicalDataPackager">
              <Directory Id="Directory8" Name="GeographicalDataPackager">
                <Directory Id="Directory9" Name="bin">
                  <Directory Id="Directory10" Name="Debug">
                    <Component Guid="01984a8e-434f-4459-a33e-b10b01a5778b"
Id="Component4">
                      <File Id="File4" Name="install_data.txt"
Source="install_data.txt" DiskId="1" />
                      <File Id="File5" Name="geodata_arcgis_init_13.py"
Source="C:\Projects\GeographicalDataPackager\Trunk\GeographicalDataPackager\GeographicalDataPackager\bin\Debug\ArcGis\geodata_arcgis_init_13.py"
DiskId="1" />
                    </Component>
                  </Directory>
                </Directory>
              </Directory>
            </Directory>
          </Directory>
        </Directory>
      </Directory>
      <Directory Id="Directory11" Name="Geodata">
        <Directory Id="Directory12" Name="index">
          <Directory Id="PACKAGE_NAME">
            <Component Guid="f04e602a-c56b-4227-8abc-c3ba71245fae"
Id="Component5">
              <RemoveFile Id="File6" Name="MyCategory*.ind" On="install" />
            </Component>
          </Directory>
        </Directory>
      </Directory>
    </Directory>
  </Product>
</Wix>
--------------------------------------------------------------------------------------------



The target directories are initially processed during costing
(CostInitialize, FileCost, CostFinalize). If you want to influence the
initial values you'll need to change them before CostInitialize. After that,
only the file system controls (e.g. PathEdit) can modify the values and
update the costing information correctly, IIRC (can't find a source at the
moment).

The standard actions are documented in the Platform SDK under "Standard
Actions" (online at http://msdn2.microsoft.com/en-us/library/aa372022.aspx).
The default sequence values are listed in the topics below "Using a Sequence
Table" (online at http://msdn2.microsoft.com/en-us/library/aa372404.aspx).
WiX uses the numbers suggested in this topic and used in the sample schema
MSI supplied in the Platform SDK. However, unlike many other tools, WiX only
generates those actions actually required to install the package (for
example, if no COM classes are advertised, the Class table is not output and
the RegisterClassInfo action is not scheduled).

For the WiX custom actions that support, for example, installing a SQL
database or performance counters, see the appropriate .wxs file in the WiX
source code.

-- 
Mike Dimmick


-- 
View this message in context: 
http://www.nabble.com/Sequence-problem%2C-running-a-custom-action-as-early-as-possible-tf4049750.html#a11516004
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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