tis-foxit 5.3.1.606-15

  • package : tis-foxit
  • version : 5.3.1.606-15
  • description : PDF reader
  • maintainer : TIS <technique@tranquil-it-systems.fr>
  • date : 2017-07-20 15:52:38
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-155237
  • min_os_version :
  • min_wapt_version :

setup.py

#!/usr/bin/python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------
#    This file is part of WAPT
#    Copyright (C) 2013  Tranquil IT Systems http://www.tranquil.it
#    WAPT aims to help Windows systems administrators to deploy
#    setup and update applications on users PC.
#
#    WAPT is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    WAPT is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with WAPT.  If not, see <http://www.gnu.org/licenses/>.
#
# -----------------------------------------------------------------------
import platform
from setuphelpers import *

required_params = []
uninstallstring=''
uninstallkey=['{27E3028E-06C8-4C09-8C3E-07F7F508304E}']

destdir = makepath(programfiles32,'Foxit Software','Foxit Reader')

def install():
    print "Check if one or several old version of Foxit are installed"
    all_foxit = installed_softwares('foxit reader')
    if all_foxit:
        for foxit in all_foxit:
            if foxit['version'] <> '5.3.1.606':
                print "Uninstall %s (%s)" % (foxit['name'],foxit['version'])
                run(WAPT.uninstall_cmd(foxit['key']))

    all_foxit = installed_softwares('foxit reader')
    if not all_foxit or WAPT.options.force:
        print("installing foxit reader")
        print run('msiexec /qn /I FoxitReader531.0606_enu.msi DESKTOP_SHORTCUT="0" MAKEDEFAULT="1" VIEWINBROWSER="0" /passive /norestart  /qn')
    else:
        print "Foxit already installed, skipping installation"

    print "Post installation"
    lang = makepath(destdir,'lang')
    if not isdir(lang):
	    os.makedirs(lang)
    filecopyto('lang_fr_fr.xml',makepath(lang,'lang_fr_fr.xml'))
    # Keep a copy of user default files.
    filecopyto('userpref.reg',destdir)
    filecopyto('french.reg',destdir)
    session_setup()

def session_setup():
    run('reg IMPORT "%s"' % makepath(destdir,'userpref.reg'))
    run('reg IMPORT "%s"' % makepath(destdir,'french.reg'))

    

manifest

[["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["lang_fr_fr.xml", "ff0d1ead961ec6518f6dad5635614105097cb198"], ["userpref.reg", "1128dc34eef48834010cb9cacf98a176a711fba1"], ["WAPT/tis-foxit.psproj", "bbf3ef835ec179aada7cb648d8442237ab73750a"], ["french.reg", "63dc6480f99805374b2f2d6cf2426f71d70306ce"], ["FoxitReader531.0606_enu.msi", "dc1126626107f8fd534ef03ad6d0f6ceaa47cc15"], ["setup.py", "4032ba29206750fac59815d02846161637ff827f"], ["WAPT/control", "d380b0a2e2ca8f1aaa7e0a2f02b8b584111793cf"], ["WAPT/wapt.psproj", "d140401965341ede69880cd6342c5db7040324b2"]]