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

Reply via email to