I want to run a C# method (UpgradeDatabase) after installation to merge databases, copy files, and so on. The method lives inside of mycore.dll, which is an installed file. I used the predefined action "Call function from standard DLL" option in the Add Custom Action dialog. The path value = "[#mycore.dll]", which resolves to the correct installed pathname when the installer runs.
But the error message says "Function 'UpgradeDatabase' cannot be found in '<Program files x86/company/product/mycore.dll.'
Using Calling Convention = Standard Calling Convention, I have tried using Classname.UpgradeDatabase and UpgradeDatabase, but both give the same error. I have read all the help documentation (not helpful at all because no syntax discussions or relevant screenshots are shown), searched more than a dozen forum pages with various search strings (not helpful), and looked through all 80 of the videos (not helpful either).
What am I doing wrong? Can you point me to some documentation or working example? Thank you.