visual-studio-2008dllwindows-installersetup-projectcustom-action

Unable to use Custom Action DLL


I am trying to use install custom action dll in a setup project I created in Visual Studio 2008 and x86 platform. I created the project using instruction given on following website: http://www.codeproject.com/Articles/335516/Custom-Action-in-Visual-Studio-setup-projects I am getting an error as "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." This error I found in a log file created during installation. I searched online for this error but it was not helpful. Also, my dll and setup project are getting compiled successfully. But I am having a warning as "Entry point 'Install' not found in module for 'C:\Users...\Release\deinstallCustAct.dll' custom action 'deinstallCustAct.dll' " and after compilation the dll file which I have added to Install folder of Custom Action is underlined by red curvy line. I am using custom actions for the first time. Please help me to solve this issue. Thanks.


Solution

  • I got the answer. I was not passing the MSIhandle to the custom action function. That's why it was giving me that error and warning. I passed "MSIHANDLE hInstall" to my custom action dll function to get rid of that error and warning! Thank you everyone for your consideration!