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 : 2017-07-20 11:23:38
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-112338
  • min_os_version :
  • min_wapt_version :

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()

    

manifest

[["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "d140401965341ede69880cd6342c5db7040324b2"], ["WAPT/rules.py", "54714eefc9990bbd8e04fdf9b714f954aa199565"], ["pf7-setup-fr.exe", "f81cd0071d847c8bdba214e32637e70f87422a78"], ["setup.py", "b8f62280bb1175481beaa1930b8475ab94c13ca3"], ["WAPT/control", "af9008606abb41ceb6c3aeca851e624bf5e453e5"]]