If that's a custom action Dll the function signature is fixed, so I assume you own that Dll to make it fit. After that, you don't pass parameters you retrieve properties with MsiGetProperty().
If you follow the usual model for a CD key, that first parameter is the PIDKEY standard Windows Installer property, and the second one looks like it's the ProductVersion property, so you can probably just get the values with MsiGetProperty calls to PIDKEY and ProductVersion. Phil Wilson ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of srinivas nomu Sent: Monday, July 16, 2007 1:18 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to call a .dll from wix with arguments? Hi I have to call a dll which is written in C. I donot know how to call this dll with arguments. How should I pass these two arguments into entrydll. Write now I have code like this: <Binary Id='WixLicense' src='wix_license_dll.dll'/> <CustomAction Id='create_license_file_from_cdkey' BinaryKey='WixLicense' DllEntry='create_license_file_from_cdkey' Execute='immediate' Return='check'/> <InstallExecuteSequence> <Custom Action='create_license_file_from_cdkey' After='InstallFiles'/> </InstallExecuteSequence> >From main program, the dll works fine like this rc = create_license_file_from_cdkey("62225-1127270143-1186981200", "10.0"); How should I pass the above two arguments. Any ideas or examples please?. Srini ________________________________ TV dinner still cooling? Check out "Tonight's Picks" <http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/> on Yahoo! TV. ------------------------------------------------------------------------- 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