What's wrong with the Custom ICE DLL I've built?

Problem

I’m trying to build a customized cub file to run against my MSI using msival2.exe. I built a DLL with some customized ICE errors and inserted it into the cub file. When I run msival2, it keeps complaining the DLL cannot be run. The detail error is following.

Product: -- Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor. Action MyCustomICE, entry: MyCustomICE, library: C:\DOCUME~1\<emailname>\LOCALS~1\Temp\MSI121.tmp

Solution

The most likely problem is the custom action entry points are not properly exported from the DLL. Did you use a .def file or linker /export switch to prevent the exported function names from being decorated?

Content credit also belongs to

  • Jason, Microsoft Dev.

[Author: Robert Flaming]

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at https://www.microsoft.com/info/cpyright.htm.