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
FOLLOW US
Get the latest news in Application Packaging