terminate process/close application not firing @ uninstall - 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!

ktiuser
Posts: 3
Joined: Mon Mar 25, 2013 4:05 pm

terminate process/close application not firing @ uninstall

I am running the latest of a registered version of Advanced Installer Preofesional, version 10 .

I have been unsuccessful in terminating and installed exe file. The executable is a WPF system tray application that communicates with a WCF service application to update various status UI to the user. Etc.

I have tried using the custom actions ‘terminate process’ and ‘close application’ placing it in various obvious locations in the install process without success. The most perplexing thing above all else, is the stop process or close application (Depending on which one I was experimenting with at the time) custom actions do NOT show any entry in the log, it is as if they are never run. It should be noted that there a many custom actions in my install process and they all work as intended except these ones.

Any assistance in this matter would be much appreciated.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: terminate process/close application not firing @ uninsta

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

For "Close application" to work as expected you need to make sure your app handles WM_CLOSE message correctly. Is this handled correctly also by your tray application? Please take a look on our "Close application" article.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ktiuser
Posts: 3
Joined: Mon Mar 25, 2013 4:05 pm

Re: terminate process/close application not firing @ uninsta

thankyou for the followup.

in the interim I resolved the issue (well at least got a workaround), if a ran the custom action, detect process, followed immediately by the custom action terminate process, it worked. terminate process in the same location without detect process fails. I do nothing with the detect custom action except just that. Perhaps some internal 'housekeeping' property is being set that is assumed by terminate process but that is just wild speculation. I am not using any of my own property extras etc., I just supply both custom actions the filename of the interesting process.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: terminate process/close application not firing @ uninsta

You're welcome. I'm glad you got this working.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”