Tatyana Mykhnevych
Posts: 40
Joined: Thu Feb 13, 2020 4:47 pm

Kaspersky Anti-Virus issue on application installation

Wed Sep 08, 2021 9:52 am

Hello,

My Advanced Installer version is 18.6.
I call installation from my custom code with /qn parameter for installaing updates.
When intallation is run the following error occures: The following applications should be closed before continuing the install.
When installing the same application not from my custom application (but by clicking .exe) and without /qn flag no issues occur.
What is the reason of Kaspersky error exactly in this case and is it possible to avoid it?


Looking forward to hearing from you.

Best regards,
Tanya
Attachments
cc3ddcd1-3843-46b1-8cd0-4c961771d414.png
cc3ddcd1-3843-46b1-8cd0-4c961771d414.png (159.18KiB)Viewed 14900 times

Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Kaspersky Anti-Virus issue on application installation

Wed Sep 08, 2021 3:21 pm

Hi Tanya,

I’m not really sure why this happens.

Please note that this dialog "FilesInUse" is shown automatically by Windows Installer, therefore it cannot be removed or hidden. This behavior appears when the installation/uninstall process tries to install/remove files that are used by other processes.

After the update is downloaded, can you please try to manually launch the setup package from an elevated command prompt using the /qn parameter and tell me if the same problem happens?

Code: Select all

mysetup.msi /qn

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Tatyana Mykhnevych
Posts: 40
Joined: Thu Feb 13, 2020 4:47 pm

Re: Kaspersky Anti-Virus issue on application installation

Wed Sep 22, 2021 10:52 am

Hi,

Running from cmd with /qn passed without problems.

Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Kaspersky Anti-Virus issue on application installation

Thu Sep 23, 2021 9:30 am

Hi Tanya,

This is quite strange.

In order for us to further investigate this issue, can you please send us the .AIP (project file) and an installation log when this problem happens by email to support at advancedinstaller dot com?

Please generate the log from your custom code using a command like this:

Code: Select all

setup.exe /qn /L*V installLog.txt

I suspect the file in use behavior occurs because the Anti-Virus scans in real-time the files of your application from the disk and has a handle in one of the files you are trying to overwrite by installing the update.

As a workaround, you can try to contact your Anti-Virus vendor about how to whitelist your setup package.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Tatyana Mykhnevych
Posts: 40
Joined: Thu Feb 13, 2020 4:47 pm

Re: Kaspersky Anti-Virus issue on application installation

Thu Sep 23, 2021 9:34 am

Thank you for your advice, will try to contact Anti-Virus vendor and check logs.

Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Kaspersky Anti-Virus issue on application installation

Thu Sep 23, 2021 10:33 am

You are welcome!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”