Kaspersky Network Agent: Fatal error during installation

Problem

While attempting to install Kaspersky Endpoint Security 10 on a freshly built computer the installation of the Network Agent failed with the less than helpful message “Fatal error during installation”.

In C:\Windows\Tenp\ the $klnagent-<timestamp>.log file contained the lines;

MSI (s) (DC!64) [11:31:58:312]: Application: Kaspersky Security Center Network Agent – Error 25002. Error while installing: Error 1205/0x0 (‘The system cannot find the path specified.’) accessing filesystem object ‘C:\ProgramData\Application Data\KasperskyLab\adminkit\data\.bases’.

Error 25002. Error while installing: Error 1205/0x0 (‘The system cannot find the path specified.’) accessing filesystem object ‘C:\ProgramData\Application Data\KasperskyLab\adminkit\data\.bases’.

CustomAction ExtractNagentBases returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)

It was as if the installer could not find or did not have access to C:\ProgramData, while browsing to C:\Windows\Temp I had also spotted a C:\Windows.old folder.

Cause:

It was not a Kaspersky problem, the Junction point for C:\ProgramData was pointing to the wrong location;

When running dir /AL C:\ProgramData in a command prompt you should normally get an output similar to the below;

18.11.2015 09:06 <JUNCTION> Application Data [C:\ProgramData]
18.11.2015 09:06 <JUNCTION> Desktop [C:\Users\Public\Desktop]
18.11.2015 09:06 <JUNCTION> Documents [C:\Users\Public\Documents]
18.11.2015 09:06 <JUNCTION> Favorites [C:\Users\Public\Favorites]
18.11.2015 09:06 <JUNCTION> Start Menu [C:\ProgramData\Microsoft\Windows\Start Menu]
18.11.2015 09:06 <JUNCTION> Templates [C:\ProgramData\Microsoft\Windows\Templates]

Mine was very different;

Solution:

The solution was to reset the junction point, in the command prompt I ran;

cd C:\ProgramData
rd "Application Data" /Q
mklink /J "Application Data" "C:\ProgramData"

After that, the installation worked fine.

13 thoughts on “Kaspersky Network Agent: Fatal error during installation”

  1. THANK YOU! This worked like a charm for me.

    When running: dir /AL C:\ProgramData my output was different than yours but I was able to delete the wrong entries and add them as they should be

    rd “whatever” /Q is used to delete the incorrect entry
    mklink /J “whatever” “C:\…see ablove for correct path” is used to ad back the correct entry
    dir /AL C:\ProgramData is used to list the JUNCTION points

    Reply
  2. Genius! Saved me a lot of time!!! I’ve been in contact with Kaspersky support (reseller) and they failed to give me a solution to this issue, no one was able to install Kaspersky on the machine and even Kaspersky support failed to provide a solution on it. I was about to reinstall windows on the machine when found your solution, which worked like a charm! Thank you very much!

    Reply
  3. Superb! Saved me a lot of time!!! I’ve been in contact with Kaspersky support (reseller) and they failed to give me a solution to this issue, No one was able to install Kaspersky on the Windows 8.1 machine.Thanks a lot. 🙂

    Reply
  4. Excellent work! I too was working with Kaspersky Business support, and was getting nowhere. These simple 4 steps resovled my issue and I was finally able to remotely install and push policy.

    Just a note – this Junction thing, seems to have come on the heals of performing a Windows Refresh, the one that saves all of your files, but blows away every program installed on the PC…

    So in combination with the KAS removal tool and these steps above it ended a 3 day attempt with KAS to resolve! thanks again.

    Reply
  5. My junction list shows that they were pointing to the correct locations but I did not have the Application Data listed. I ran your commands and the installation of Network Agent 10.2.434 worked without any issue.

    My issue appeared after upgrading to Windows 10 (There are so many issues that Microsoft refuse to acknowledge) and it removed a load of files. The C:\ drive is filled with new folders named after some kind of SID but this has not caused any issues yet.

    Thank you for the advice.

    Reply
  6. A powerful share, I just given this onto a colleague who was doing a little bit analysis on this. And he in reality purchased me breakfast as a result of I found it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to discuss this, I feel strongly about it and love reading extra on this topic. If doable, as you grow to be expertise, would you thoughts updating your weblog with extra particulars? It’s highly helpful for me. Large thumb up for this weblog post!

    Reply

Leave a Reply to Liana Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.