Krishnakumar B

Custom action during uninstall stage

Hi,

I am having problems in executing custom action DLLs as part of the uninstall. I have created a DLL and am registering (calling COM functions) a file with another product within a function in the DLL. This custom action works fine during installation. But when I add another function to this DLL and register the same DLL as a custom action to be executed on uninstall, the call to that function fails. I get the following in the Windows Installer error
log :

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 RegisterParadigm.dll_1, entry: UnRegisterParadigm, library: C:\WINNT\Installer\MSI2AFD.tmp
=== Logging stopped: 7/27/2004 14:05:06 ===

I just recently bought Advanced Installer Pro. Please let me know if I need to provide more information. On a related note, once this happens I am unable to uninstall the product from the machine. I have to manually delete the following entries from the registry to continue further testing. Is there any alternate approaches to avoid this?

HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\[myproductkey]
HKCR\Installer\Products\[myproductkey]

Thanks,
kitty.
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

Hi Kitty,

Error 1723 usually signifies that there was a problem running the custom action. In your case, the function from the DLL that you are calling. Please make sure that you can run that action (the specific function in the DLL) during install, at least.

You are right about not being able to uninstall the package when an uninstall CA fails, and I don't have a better solution than removing the registry keys...
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”