rconn
Posts: 70
Joined: Sat Mar 03, 2007 5:38 pm

New, unwanted, empty FilesInUse dialogs

Using A 7.7 Enterprise.

I just added a FileAssociationsDlg, and I'm now getting *two* FilesInUse dialogs -- one empty one after the license dialog (which goes away if I close the app that called the updater), and another one at the end which is not empty -- but which is complaining about old version executables that are irrelevant to the new installation (which is a different version in a different directory).

Are these the result of adding the file associations? Any way of getting rid of them short of removing FileAssociationsDlg?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: New, unwanted, empty FilesInUse dialogs

Hi,

The first FilesInUse dialog is supposed to be shown. This is the normal installer behavior when files which need to be updated are in use. The dialog is empty because your application name cannot be retrieved.

I'm not sure why the second dialog is shown. When exactly does this happen? Also, is it shown during an upgrade or a regular installation? If it's shown during an upgrade it's because the version which is being uninstalled has some files that are used by other processes.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rconn
Posts: 70
Joined: Sat Mar 03, 2007 5:38 pm

Re: New, unwanted, empty FilesInUse dialogs

Neither dialog had ever appeared in the installation until I added the FileAssociationsDlg; I don't know if that's a correlation or a coincidence.

Why would the first dialog display an empty window? The application name certainly seems well-known to AI in every other dialog.

The second dialog is shown during the ProgressDlg. (This is during an upgrade.) The version being uninstalled does *not* have any files being used by the other processes, except that they have the same name (but are installed in a different directory). (Is it basing usage on the name or the source directory?)
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: New, unwanted, empty FilesInUse dialogs

Hi,
Neither dialog had ever appeared in the installation until I added the FileAssociationsDlg;
This dialog sets some feature actions. Most likely this triggers the InstallValidate action which is responsible for FilesInUse dialog.
Why would the first dialog display an empty window? The application name certainly seems well-known to AI in every other dialog.
Please note that the installation dialogs use the Product Name you specified in your Advanced Installer project. The application name is retrieved automatically by Windows Installer from the application process.
The second dialog is shown during the ProgressDlg. (This is during an upgrade.) The version being uninstalled does *not* have any files being used by the other processes, except that they have the same name (but are installed in a different directory). (Is it basing usage on the name or the source directory?)
In this case the second dialog is shown by the uninstall process of the old version. You mentioned that the application is running when starting the installer. This means that the old version files are being used by at least one process.

To avoid the FilesInUse dialog you can try using a Close Application custom action.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”