I am currently developing a MSI package and after doing some research on custom action dll, I found the following link.
It says :
So I understand that I need UINT as my function return type and __stdcall as a calling convention. For those of you who have worked with MSI before, do you know if putting the argument "MSIHANDLE hInstall" is required as well?Note that any called functions, including custom actions in DLLs, must specify the __stdcall calling convention. For example, to call CustomAction use the following.
Code:#include <windows.h> #include <msi.h> #include <Msiquery.h> UINT __stdcall CustomAction(MSIHANDLE hInstall)
I've tried running my MSI with the argument removed from the function, and it ran well, but I was afraid if might unexpectedly crash one day because of that.