Bonjour à tous, je commence à gratter (un peu) la création de paquet et je n'arrive pas à faire un truc qui doit être tout simple :
Je veux supprimer une dll à la fin d'install de vlc, j'ai modifié le setup.py de cette manière mais ma dll ne veux pas s’effacer.... ami pro-python voyer vous la coquille ?
from setuphelpers import * import os.path uninstallkey = ['VLC media player']
def install(): try: install_exe_if_needed('vlc-2.2.1-win32.exe','/S --no-qt-privacy-ask','VLC media player',min_version='2.2.1',killbefore='vlc.exe') except: killalltasks('vlc.exe') print("installing VLC exe") run('"vlc-2.2.1-win32.exe" /S --no-qt-privacy-ask') filename = makepath(programfiles32,'videolan','VLC','npvlc.dll') if os.path.isfile(filename): os.remove(filename)
Cordialement.