There are changes in the behavior of some Windows Installer API calls in InstallScript Custom Actions for InstallShield 2012. You need to be aware of these, so I will list them for you:
- You can now use the MSI install handle that is passed to InstallScript custom action functions for Windows Installer APIs that require an install handle.
- You must now specify a large enough buffer before you call Windows Installer APIs that require it. One example of this is when you call MsiGetProperty. The call requires a buffer to be passed to it. Make sure you specify a large enough size buffer when you make the call. Note that zero is not a valid size.
If you need more info on these items, you can consult the KnowledgeBase article here: