Problem Creating Bitdefender Endpoint Package
Published: June 18, 2021 - 6:21 PM
Hello everyone,
First of all, being brand new here, if I'm not in the right section or if anything is missing, please excuse me in advance
For testing prior to deployment for a client company, I am creating a Bitdefender Gravityzone version package.
Currently, it is possible to launch a classic Windows command-line installation and an uninstallation using a setup obtained from the Bitdefender website and also launched via the command line.
installation line:
uninstallation line:
Currently, I have managed to get the def install() part of my setup.py working, however I am a little stuck on the procedure for the def uninstall() part.
Here is my setyp.py:
Regarding the uninstallation process, I'm not quite sure how to add my /params and /password to an uninstallation command. Can `run` do this, or am I doing it completely wrong?
Thank you in advance to the entire community.
Have a good evening and a good weekend
Rémi Lhommeau
First of all, being brand new here, if I'm not in the right section or if anything is missing, please excuse me in advance
For testing prior to deployment for a client company, I am creating a Bitdefender Gravityzone version package.
Currently, it is possible to launch a classic Windows command-line installation and an uninstallation using a setup obtained from the Bitdefender website and also launched via the command line.
installation line:
Code: Select all
epskit_x64.exe /configure "installer.xmlCode: Select all
Best_uninstallTool.exe /bdparams /password=monpasswordHere is my setyp.py:
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
if not installed_softwares(u'60c0cf4edc234a6808744eab'):
print('BitDefender Gravity Zone : Installing...')
run(u'epskit_x64.exe /configure "installer.xml',timeout=2000,accept_returncodes=[1641,3010,0])
print('BitDefender Gravity Zone: Installation Complete')
else:
print('BitDefender Gravity Zone: Deja installe')
if not isdir(makepath(programfiles,'Bitdefender','BitdefenderUninstall')):
mkdirs(makepath(programfiles,'Bitdefender','BitdefenderUninstall'))
filecopyto('BEST_uninstallTool.exe',makepath(programfiles,'Bitdefender','BitdefenderUninstall'))
def uninstall():
print('Bitdender Gravity Zone : desinstallation en cours...')
uninstallstring = ["C:\Program Files\Bitdefender\BitdefenderUninstall\Best_uninstallTool.exe"]
x = "/bdparams"
y = "/password=monpassword"
run(uninstallstring,x,y,timeout=2000,accept_returncodes=[1641,3010,0])
print('Nettoyage des fichiers de desinstallation.')
remove_file(makepath(programfiles,'Bitdefender','BitdefenderUninstall','Best_uninstallTool.exe'))
print('Suppression du dossier.')
if dir_is_empty(makepath(programfiles,'Bitdefender','BitdefenderUninstall')):
remove_tree(makepath(programfiles,'Bitdefender','BitdefenderUninstall'))
print('Bitdefender Gravity Zone : Desinstallation complete')Regarding the uninstallation process, I'm not quite sure how to add my /params and /password to an uninstallation command. Can `run` do this, or am I doing it completely wrong?
Thank you in advance to the entire community.
Have a good evening and a good weekend
Rémi Lhommeau