Upgrading on Windows platform

This section focuses on upgrade steps you must perform when upgrading your KAV SDK setup to a newer version on Windows platfom. Depending on the integration type you have chosen for KAV SDK, upgrade procedure might require you to perform additional steps specific to that type.

In-process and out-of-process integration

If you are using in-process or out-of-process integration types for KAV SDK library, please follow the upgrade procedure below.

  1. Deinitialize the running KAV library

    To do that call kaveUninitialize. This step must only be performed if there is a running instance of KAV SDK library at the time of upgrade.

  2. Update binary files.

    Replace files in the ./bin folder of the current KAV SDK setup with the files in the ./bin folder of the upgrade package.

  3. [optional] Replace Kaspersky drivers

    This step is performed only you are using Kaspersky drivers.

    Version of Kaspersky drivers must match the version of KAV SDK. Never use drivers from a previous version of KAV SDK.

    When upgrading on Windows 10 platform, for KAV SDK v. 8.6.x or later, first remove helper cleanup drivers from the system by running udinstaller tool with the --cleanup option specified in its parameters. Then you are ready to reinstall other Kaspersky drivers. Using udinstaller with --cleanup is only required on Windows 10 platform. On other platforms it is enough to reinstall drivers.

    To reinstall the drivers, run the udinstaller tool to remove currently used drivers from existing KAV SDK installation and install new versions of the driver files shipped with upgrade package. For more information about working with KAV SDK drivers and using the udinstaller tool, please refer to section "Drivers".

  4. [optional] Register monitor components

    This step is performed only when your current install of KAV SDK uses Web Monitor or Mail Monitor components, or you plan to use them in the version of KAV SDK to which you upgrade.

    Run mail.reg and mail64.reg registry setting files to register SDK monitor components on x86 and x64 operating systems correspondingly. These files contain registry settings for monitor components that must be imported into system registry.

  5. [optional] Enable cleanup

    If you are implementing upgrade of KAV SDK components on a desktop version of Windows platform, it is recommended to enable cleanup. Cleanup is enabled by running cleanup.reg and cleanup64.reg files on x86 and x64 operating systems correspondingly.

  6. Update malware definitions

    Obtain recent versions of malware definitions by updating malware definition database. It is recommended that you remove currently used definition files from the malware definition database folder and perform automatic update using Updater SDK. The path to this folder is specifier in the pDatabasesPath parameter of initialization functions used to initialized KAV SDK library.

    Make sure that version of Updater SDK that you are using matches the version of KAV SDK.

  7. Clean up temporary folder

    Make sure that you remove remnants of temporary data from the temporary folder before the first start of upgraded KAV SDK. Location of the temporary folder is specified in the pTempFolder parameter of kaveInitialize/kaveInitializeEx functions.

  8. [optional] Restart the local computer

    This step is performed only you are using Kaspersky drivers.

    To finish removal of drivers or upgrade procedure, restart the local system.

Service integration

If you are using service integration type for KAV SDK library, please follow the upgrade procedure below.

  1. Deinitialize your application and stop the KAV service hosting process

    To stop the KAV service hosting process, run net stop kavehost at the command prompt. Please note that command prompt must be elevated when running under Windows platform with NT6.x kernel and UAC enabled. This step must only be performed if there is a running instance of KAV SDK library at the time of upgrade.

  2. Unregister KAV service from system

    To do that run kavehost -del at the command prompt. Please note that command prompt must be elevated when running under Windows platform with NT6.x kernel and UAC enabled.

  3. Update binary files.

    Replace files in the ./bin folder of the current KAV SDK setup with the files in the ./bin folder of the upgrade package.

  4. [optional] Replace Kaspersky drivers

    This step is performed only you are using Kaspersky drivers.

    Version of Kaspersky drivers must match the version of KAV SDK. Never use drivers from a previous version of KAV SDK.

    When upgrading on Windows 10 platform, for KAV SDK v. 8.6.x or later, first remove helper cleanup drivers from the system by running udinstaller tool with the --cleanup option specified in its parameters. Then you are ready to reinstall other Kaspersky drivers. Using udinstaller with --cleanup is only required on Windows 10 platform. On other platforms it is enough to reinstall drivers.

    To reinstall the drivers, run the udinstaller tool to remove currently used drivers from existing KAV SDK installation and install new versions of the driver files shipped with upgrade package. For more information about working with KAV SDK drivers and using the udinstaller tool, refer to section "Drivers".

  5. [optional] Register monitor components

    This step is performed only when your current install of KAV SDK uses Web Monitor or Mail Monitor components, or you plan to use them in the version of KAV SDK to which you upgrade.

    Run mail.reg and mail64.reg registry setting files to register SDK monitor components on x86 and x64 operating systems correspondingly. These files contain registry settings for monitor components that must be imported into system registry.

  6. [optional] Enable cleanup

    This step is performed only for desktop integrations.

    If you are implementing upgrade of KAV SDK components on a desktop version of Windows platform, it is recommended to enable cleanup. Cleanup is enabled by running cleanup.reg and cleanup64.reg files on x86 and x64 operating systems correspondingly.

  7. Register KAV service in system

    To do that run "kavehost -reg" at the command prompt. Please note that command prompt must be elevated when running under Windows platform with NT6.x kernel and UAC enabled.

  8. Update malware definitions

    Obtain recent versions of malware definitions by updating malware definition database. It is recommended that you remove currently used definition files from the malware definition database folder and perform automatic update using Updater SDK. The path to this folder is specifier in the pDatabasesPath parameter of initialization functions used to initialized KAV SDK library.

    Make sure that version of Updater SDK that you are using matches the version of KAV SDK.

  9. Clean up temporary folder

    Make sure that you remove remnants of temporary data from the temporary folder before the first start of upgraded KAV SDK. Location of the temporary folder is specified in the TempPath parameter in the configuration file used by the kavehost service.

  10. [optional] Restart the local computer

    This step is performed only you are using Kaspersky drivers.

    To finish removal of drivers or upgrade procedure, restart the local system.

See also

kaveInitialize

kaveInitializeEx

Page top