phainge
Posts: 13
Joined: Fri May 29, 2009 9:53 am

Custom action before uninstall remove files

Hi.

I have project which is installing a number of self-registering DLLs, using the "Auto-register - self-register native library" option, which is working fine. The problem is that when uninstalling the application the DLLs are not being unregistered. There is no other application using the DLLs. So I'm considering creating a custom action to call an EXE that will unregister these DLLs manually. What I need to know is how to create a custom action that is executed only during uninstall but BEFORE the DLLs are removed. Thanks.

Peter
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Re: Custom action before uninstall remove files

Hi,
The problem is that when uninstalling the application the DLLs are not being unregistered. There is no other application using the DLLs.
You can generate an uninstall log in order to determine what might cause this.
http://www.advancedinstaller.com/user-guide/qa-log.html
What I need to know is how to create a custom action that is executed only during uninstall but BEFORE the DLLs are removed. Thanks.
Just add the custom action before the RemoveFiles standard action. To make sure the custom action is executed only during uninstall use the REMOVE="ALL" condition.

Best regards,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”