/build/static/layout/Breadcrumb_cap_w.png

Wise can't find custom action functions in Msi.dll

I'm having trouble adding patches and making log files on applications. I'm using Wise Windows Installer Editor in script mode and I'm trying to do the: Call Custom DLL From Destination action. I'm trying to call several function from SystemFolder\Msi.dll, but none of them seem to enact. I'm calling the MsiApplyPatch and the Installer.EnableLog functions from Msi.dll. The Platform SDK help documents claim that these functions are in the Msi.dll but every time I try to run the installer, it gives me the message: "Error in custom action. The function xxxxxx could not be located in the library C:\WINDOWS\system32\Msi.dll" IT'S VERY FRUSTRATING! the text say the functions are supposed to be there! They only require W.I. 1.0 and I have ver. 3.1.

If anyone knows of an easier way to add patches or make log files in a specific location, I'd really like to know:) However, being the perfectionist that I am, I'd really, really like to know how to add a custom DLL function from Msi.dll. I'm beating myself up over it [>:].

As always, thanks for any help.

0 Comments   [ + ] Show comments

Answers (2)

Posted by: jmcfadyen 16 years ago
5th Degree Black Belt
0
many of those actions are only available during specific contexts.

one thing you would need to check is that when calling a dll Ca that it has access to the session object that vbs script does.

it is here where you will be able to access most of those methods you require.
Posted by: nautic20 16 years ago
Senior Yellow Belt
0
Thanks for responding jmcfadyen,

So, do you know what kind of context MsiApplyPatch or Installer.EnableLog would be available to? And, if need be, how exactally in Windows Installer Editor would I grant my .msi access to the session object?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ