tis-photofiltre 7.1.2-3

  • package : tis-photofiltre
  • version : 7.1.2-3
  • description : Editeur d'image Photofiltre
  • maintainer : TIS <technique@tranquil-it-systems.fr>
  • date : 2018-02-27 19:06:47

setup.py

import subprocess
import shutil
import os
from setuphelpers import *

uninstallkey=[]

def install():
  basedir = os.path.dirname(__file__)
  print ("closing photofiltre")
  os.system("taskkill /im PhotoFiltre7.exe /f")
  program_files_dir=os.environ['ProgramFiles']
  if 'PROGRAMFILES(X86)' in os.environ:
    program_files_dir=os.environ['PROGRAMFILES(X86)']
  print program_files_dir
  print("installing exe")
  subprocess.call(os.path.join(basedir,"pf7-setup-fr.exe /S"),shell=True)
  print("creating desktop launcher")
  remove_user_desktop_shortcut('PhotoFiltre 7')
  create_desktop_shortcut('PhotoFiltre 7', os.path.join(programfiles32, 'PhotoFiltre 7', 'PhotoFiltre7.exe'))

def uninstall():
  print 'uninstalling PhotoFiltre'
  cmd = '"{}" /S'.format(os.path.join(programfiles32,'Photofiltre 7','Uninst.exe'))
  run(cmd)
  remove_desktop_shortcut('PhotoFiltre 7')


if __name__ == "__main__":
  install()

    

Changelog

No changelog
    

manifest.sha256

[["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "bc34bb5f85d78dffc7effd37bd0639580a0e140c155973c04d79eb9aa31eb57a"], ["WAPT/rules.py", "2665ccc5482081e38b4e4b177468fd1c00d09ba87b64a17e106ee721a6f9b469"], ["pf7-setup-fr.exe", "eeda06b46c1f88ccc4661de2f8f8737e8f030f3197ccdd7d2563a8a246d5a9aa"], ["setup.py", "7d0cc3228c642144652e78fdb1e8982165b1bb7282a186cfa46c2556106ecc2e"], ["WAPT/control", "eb188ad0b0d7488d16d17a5f7a65aa42621a38430aa761637e52bcbdb56547f7"]]