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 : 2015-11-19 16:41:21
  • signer :
  • signature_date :
  • 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

[
 [
  "pf7-setup-fr.exe", 
  "f81cd0071d847c8bdba214e32637e70f87422a78"
 ], 
 [
  "setup.py", 
  "b8f62280bb1175481beaa1930b8475ab94c13ca3"
 ], 
 [
  "WAPT\\control", 
  "7dbf305b9aceaa62bab661ed2777539d4148b250"
 ], 
 [
  "WAPT\\rules.py", 
  "54714eefc9990bbd8e04fdf9b714f954aa199565"
 ], 
 [
  "WAPT\\wapt.psproj", 
  "d140401965341ede69880cd6342c5db7040324b2"
 ]
]