Page 1 of 1

Indentation problem with Kaspersky MSI

Published: July 26, 2018 - 2:31 PM
by olivetree
Good morning

- Installed WAPT version (1.5.1.23)
- Windows Server 2012r2 operating system
- Operating system of the administration machine/creation of Windows 10 packages

I am encountering a difficulty integrating arguments for installing an MSI package into a WAPT package.
Unfortunately, the command line contains quite a few special characters (Thanks Kaspersky) and using

Code: Select all

install_msi_if_needed
Or, doing it the old-fashioned way doesn't work.
I'm stumped... Does anyone have any ideas?

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = ["{2924BEDA-E0D7-4DAF-A224-50D2E0B12F5B}]"]

def install():
    print('installing deployadmin-agent-kaspersky')
	killalltasks("klnagent.exe")
	run(r'"Kaspersky_Network_Agent.msi" /qn /l*vx c:\windows\temp\nag_inst.log SERVERADDRESS="1XX.X7X.XX2.XX6" DONT_USE_ANSWER_FILE=1 EULA=1')

Re: Indentation problem with Kaspersky MSI

Published: July 26, 2018 - 3:10 PM
by sfonteneau
Print and killalltasks are not on the same level.

The indentation problem is there.

Code: Select all

    print('installing deployadmin-agent-kaspersky')
	killalltasks("klnagent.exe")