Problem – Kaspersky Network Agent: Fatal error during installation
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.
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;
The solution was to reset the junction point, in command prompt I ran;
cd C:\ProgramData rd "Application Data" /Q mklink /J "Application Data" "C:\ProgramData"
After than the installation worked fine.