Jump to content

How to modify KES incompatible software list [KES for Windows]


Recommended Posts

Advice and Solutions (Forum Knowledgebase) Disclaimer. Read before using materials.

 

This instruction applies only to KES11.9 and earlier versions.

It will not work with most recent versions of KES installer (cleanerapi_v2).The list of ini files in cleaner_v2.cab is encrypted, and there is no cleanapi.ini file to change. If you have a specific need to add a new ini file to the KES installation package, kindly contact Kaspersky Support.

In case you want to skip automatic uninstallation of a specific software, but do not want to disable incompatible software check completely, you may edit cleaner.cab

Step-by-step guide

 

  1. Download full KES distributive
  2. Start it and make sure all files were unpacked
  3. Navigate to the directory you unpacked installer to
  4. Find cleaner.cab
  5. Unpack it to the separate directory
  6. Find *.ini you want to skip and delete it
  7. Pack all the remaining files to cleaner.cab
  8. Find cleanapi.ini
  9. Find and remove all lines related to the products you removed on step 6
  10. You may now use this custom file instead of the standard one place it near setup.exe or *.kud\*.kpd before creating package for KSC

 

Packing files back to *.cab file may be difficult if you do not have specific software. Below you can find two scripts: one for command prompt, one for powershell.

 

Command prompt

Run command prompt script from the directory with *.ini files.

@echo off
 dir /s /b /a-d >files.txt
 makecab /d "CabinetName1=cleaner.cab" /d "MaxDiskSize=0" /f files.txt
 del /q /f files.txt, setup.inf, setup.rpt

 

Powershell

Powershell script syntax is: compress-directory "PATH_TO_INI"

function compress-directory([string]$dir)
 {
     $ddf = ".OPTION EXPLICIT
 .Set CabinetNameTemplate=cleaner.cab
 .Set DiskDirectory1=.
 .Set CompressionType=MSZIP
 .Set Cabinet=on
 .Set Compress=on
 .Set CabinetFileCountThreshold=0
 .Set FolderFileCountThreshold=0
 .Set FolderSizeThreshold=0
 .Set MaxCabinetSize=0
 .Set MaxDiskFileCount=0
 .Set MaxDiskSize=0
 "
     $dirfullname = (get-item $dir).fullname
     $ddfpath = ($env:TEMP+"\temp.ddf")
     $ddf += (ls -recurse $dir | ? {!$_.psiscontainer}|select -expand fullname|%{'"'+$_+'" "'+$_.SubString($dirfullname.length+1)+'"'}) -join "`r`n"
     $ddf
     $ddf | Out-File -encoding UTF8 $ddfpath
     makecab /F $ddfpath
     rm $ddfpath
     rm setup.inf
     rm setup.rpt
 }
Link to comment
Share on other sites

  • The title was changed to How to modify KES incompatible software list [KES for Windows]

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...