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

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of md5hans
Sent: 09 July 2007 15:31
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Sequence problem,running a custom action as early as
possible


Hi!

I'm trying to get a Custom Action to be executed before the installer
creates/checks any direcorys. I want to remove some files and the location
of them are depending on a value that is retrieved by my Custom action
"GettingXmlValue" and thevalue is put into the property "PACKAGE_NAME".
Below are som extracs from my Wix file. If I run the resulting msi package I
get an error saying:

Could not access network connection "A package name"

"A package name" is the default value of the property PACKAGE_NAME so this
indicates that I'm using the property before the "GettingXmlValue" action
has been executed. I use the PACKAGE_NAME property in other places in my WIX
definition and there it has the value that has been set by the Custom Action
(so the Custom Action works).

/Hans

<Property Id="PACKAGE_NAME">"A package name"</Property>

....

<CustomAction Id="GettingXmlValue" BinaryKey="GetXmlValue"
DllEntry="GetXmlValue" />

...

<InstallExecuteSequence>
     <Custom Action="GettingXmlValue" Before="AppSearch"> NOT
Installed</Custom>
</InstallExecuteSequence>
...

<Directory Id="Directory11" Name="Geodata">
   <Directory Id="Directory12" Name="index">
      <Directory Id="PACKAGE_NAME">
         <Component Guid="e4e283ab-ec9e-400b-b216-7a872cad96f2"
Id="Component5">
             <RemoveFile Id="File6" Name="MyCategory*.ind" On="install" />
         </Component>
      </Directory>
   </Directory>
</Directory>

Ps Can anybody point me to a description of the sequencing variables (and
maby the order of the sequencing when a MSI is executed)? Ds
-- 
View this message in context:
http://www.nabble.com/Sequence-problem%2C-running-a-custom-action-as-early-a
s-possible-tf4049750.html#a11502981
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


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