Two possible ideas come to mind.  1) Is your custom action scheduled to run as a deferred custom action?   2) Depending on when you are attempting to execute this custom action, you might be having some difficulty accessing the msi properties.  Deferred custom actions have access to only a very limited number of properties (search for CustomActionData).  The custom action you are describing would need to be deferred and use the CustomActionData property if it's accessing any installed files.

See this section of the tutorial for more info:
http://www.tramontana.co.hu/wix/lesson3.php#3.6

Dana


On 11/14/06, carlldev <[EMAIL PROTECTED]> wrote:

Hi there,

I have a working Custom Action that reads an installed XmlFile and executes
a command line a number of times with parameters extracted from the xmlfile.

The code works fine if I put it after InstallFinalize but that means if the
command line execution fails there is no way to rollback the installation.

I have added debugging to the code and it reveals this:
'Could not find a part of the path 'C:\Program
Files\Product\Resources.xml'.'.

But since the code is being executed after InstallFiles the xmlfile should
be there.

The custom action (in Wix) looks like this:
<CustomAction Id="DoMyAction" BinaryKey="CustomActions"
DllEntry="DoMyAction" />
<Custom Action="" After="InstallFiles">NOT Installed</Custom>

Any help would be appreciated.
Thanks
--
View this message in context: http://www.nabble.com/Managed-Code-Custom-Action---Reading-Xml-File-tf2628948.html#a7336040
Sent from the wix-devs mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to