Tue Jan 25, 2011 12:06 pm
Hello,
An alternative solution would be:
- under UI Custom Actions, add a new attached custom action, and select "<AI_CUSTACTS>stdDllWrapper.dll" as the dll, where <AI_CUSTACTS> is the path variable containing the path to the folder in which stdDllWrapper.dll resides
- add the custom action where you need your dll to run
- add a new SetProperty event before the stdDllWrapper custom action, and ,using it, set the CustomActionData property to the string that holds the parameters for the stdDllWrapper custom action.
You can find out that string by adding a Call Function from Standard DLL under InstallExecuteSequence, configuring the parameters you need, then copying the string to your SetProperty event. For reference, the string should look something like "[FolderProp]file.dll?V;;S;YourFunction;", depending on what parameters you've set for the Call Function from Standard DLL custom action. Then, delete the custom action you've just created under InstallExecuteSequence, you only needed it to find out the generated string holding its configuration.
- make sure the SetProperty published event runs before the stdDllWrapper custom action you've set on the ui.
That's it. Now, stdDllWrapper.dll should call your custom action.
Let me know if you encounter difficulties implementing this.
Best regards,
Gabriel