Lav,

 

Aside from the usual "Custom Actions are [nearly always] evil" type
statements, the best thing to do is code your custom action via some
other mechanism.

 

Ideally, a custom action should not have any dependencies, since you do
not know what will and will not be present on the machine when the
custom action is run. This is especially true in the case of an
installation repair.

 

For your custom action to operate, you must a) install the dependent
dll, and b) schedule the custom action to occur after the files have
been copied.

 

I would strongly suggest that you do the following:

 

1) Evaluate how necessary the custom action is. Depending on what it is
supposed to achieve, can it be done by the application itself on initial
startup?

 

2) If the custom action really is necessary at installation time,
rewrite it encapsulated within a DLL with no external dependencies. This
may require duplication of code since it is entirely possible (if not
likely) that your application needs similar functionality. That is OK
though. Duplicated code (especially if managed appropriately by source
code control) is much less likely to cause installation problems than
fighting with dependencies.

 

Hope this helps,

Regards,

Richard

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, May 09, 2007 8:06 AM
To: [email protected]
Subject: [WiX-users] Dll dependent Custom Actions

 

Hi,

 

I've a custom Action which uses an exe.This exe is refering to another
dll.

How can I make this dll available to the exe during installation,As it
is failing during installation with error "Unable to load dll or it's
dependencies" ?

 

<CustomAction BinaryKey="PublishServices" Id="RegisterServiceCatalog"
ExeCommand="Executable" />

<Binary Id="PublishServices" SourceFile="Binary\Executable.exe" />

Regards,

Lav




* C O N F I D E N T I A L I T Y N O T I C E *
-----------------------------------------------------------
The content of this e-mail is intended solely for the use of the individual or 
entity to whom it is addressed. If you have received this communication in 
error, be aware that forwarding it, copying it, or in any way disclosing its 
content to any other person, is strictly prohibited. Peek Traffic Corporation 
is neither liable for the contents, nor for the proper, complete and timely 
transmission of (the information contained in) this communication. If you have 
received this communication in error, please notify the author by replying to 
this e-mail immediately and delete the material from any computer.


-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to