Custom Action -- Uninstall DLL fails to execute - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ravi
Posts: 5
Joined: Fri Nov 09, 2007 4:26 pm

Custom Action -- Uninstall DLL fails to execute

I ran my uninstall on 5 different machines. On 3 XP machines, the custom uninstall action was executed and behaved as expected. On 2 machines, a Windows 2000, and a Windows XP, it appears the dll is not executing (I have logfile statements in the code, and no log file is created on these machines).

Details:
I added a custom action (to terminate my non-windowed application on uninstall) to Target Computer --> InstallExecuteSequence --> Uninstall --> myuninstallactions.dll

In the Custom Action Properties:
Source Type: Dynamic linked library (*.dll)
Function Name: Terminate_Instance {this is my function}
Execution Properties: Synchronous execution, ignore return code.
Execution Options: Deferred.
Execution Condition REMOVE"ALL"

Using advanced installer 4.3

And if I change the Execution Properties to "Synchronous execution, check return code." I get a "Fatal Error" popup during uninstall, and the program cannot be uninstalled.

Any idea as to why the dll is not being executed on these platforms?

Also, where does the installer place the custom action dll files?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Most likely the DLL you are using has some dependencies that are not present on the systems that show this behavior.

Please create a log of the uninstall process by using this command:

Code: Select all

msiexec /x package.msi /L*V package.log
where package.msi is your package.

Please check the log and check the DLL with the Dependency Walker tool (distributed with the SDK) in order to find the problem.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ravi
Posts: 5
Joined: Fri Nov 09, 2007 4:26 pm

Thanks for the repliy. You were correct. I switched the Runtime Library option in visual studio (Config Properties->C/C++->Code Generation->Runtime Library) from "Multi Threaded DLL" to "Multi Threaded" (no DLL), and it works fine now

Return to “Common Problems”