Hi Srini,
 
The idea is that you don't explicitly pass any arguments to the function
call (the only argument being the MSI handle that get's set by the
installer), instead they are passed by a process of the installer
setting up the necessary properties before the custom action is
executed. Then within the DLL's function you make calls to
MsiGetProperty() to get the "arguments" and do your processing. In a
similar way, if you need some OUT arguments you use MsiSetProperty.
 
If you google for MsiGetProperty you will find many examples (some not
wix specific, but it does not matter), but here are some starting points
for you:
 
http://msdn2.microsoft.com/En-US/library/aa370134.aspx
 
http://www.wixwiki.com/index.php?title=Simple_Custom_Action_Dll
 
That should get you started, plus it seems there are some threads in the
archive for this mailing list, so you should be able to find some tips
searching through that as well.
 
Good luck,
Ian.
 


________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of srinivas
nomu
Sent: Tuesday, 17 July 2007 7:37 AM
To: Mike Dimmick; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How to call a .dll from wix with arguments?


Does this mean I have to use only one argument by combining those two
arguments?. You also said that "Your custom action will have to read any
other information it needs from the install database using e.g.
MsiGetProperty."

What is meant by that?. Can you elaborate?.
 
Any good examples?. Thank you very much.
 
Srini
 
-------------------------------------------------------------------------
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