vakbijevs
Posts: 12
Joined: Wed Nov 15, 2006 3:43 pm

Can not uninstall application if it's running at the moment

I would guess, it should be able to check it's running and close it. Or to display an apropriate error. At the moment, if trying to install the aplication while it's running, it will give error that should quit "Lotus Notes" before continuing and would not let you go any further. If you actually quit "LotusNotes" and click retry than it fails with strange error and application stays running.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

If your application is running on uninstall then windows installer pups up with "FilesInUse" dialog asking you to close that application. This is the normal behavior.
If you actually quit "LotusNotes" and click retry than it fails with strange error and application stays running.
Please make sure that your application is closing correctly, after you close it verify if the associated process is closed, maybe it hangs on something. You can verify that with a process explorer.

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
vakbijevs
Posts: 12
Joined: Wed Nov 15, 2006 3:43 pm

gigi wrote: If your application is running on uninstall then windows installer pups up with "FilesInUse" dialog asking you to close that application. This is the normal behavior.
:roll:
Q1: Dialog ask to close Lotus Notes only if our appilcation (Java based) is running. Are you sure that it is normal behavior?

Q2: How I can check running application (i don't ask about Lotus Notes) and close it before uninstall? An VBScripts?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Q1: Dialog ask to close Lotus Notes only if our appilcation (Java based) is running. Are you sure that it is normal behavior?
If one of the files from your application is in use (by any program) at the time of uninstall then the "FileInUse" dialog will appear asking you to close that application first. This is controlled by Windows Installer and is a normal behaviour.
Q2: How I can check running application (i don't ask about Lotus Notes) and close it before uninstall? An VBScripts?
A custom action can be done, but there is no guaranties that any application can be closed correctly (by sending a WM_CLOSE message to it's main window). For example an application can have a confirmation dialog on the close button.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
vakbijevs
Posts: 12
Joined: Wed Nov 15, 2006 3:43 pm

Q2: How I can check running application (i don't ask about Lotus Notes) and close it before uninstall? An VBScripts?
A custom action can be done, but there is no guaranties that any application can be closed correctly (by sending a WM_CLOSE message to it's main window). For example an application can have a confirmation dialog on the close button.
[/quote]

We don't have an confirmation dialog. So, can you provide an solution (script) to close application before install/uninstall?

Return to “Common Problems”