tis-silverlight 5.1.50907.0-1

  • package : tis-silverlight
  • version : 5.1.50907.0-1
  • description : automatic package for Microsoft® Windows® Operating System (Microsoft Corporation)
  • maintainer : Simon Fonteneau
  • date : 2017-09-19 11:27:45
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170919-112742
  • min_os_version :
  • min_wapt_version :

setup.py

# -*- 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/>.
#
# -----------------------------------------------------------------------
from setuphelpers import *

# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = []

def install():

    print('installing silverlight')

    key = '{89F4137D-6C26-4A84-BDB8-2E5A4BB71E00}'
    versionsoft = control['version'].split('-',1)[0]
    if iswin64():
        install_exe_if_needed('Silverlight_x64.exe',silentflags='/q /noupdate',key=key,min_version=versionsoft,killbefore=['iexplorer','firefox.exe','edge.exe'])
    else:
        install_exe_if_needed('Silverlight.exe',silentflags='/q /noupdate',key=key,min_version=versionsoft,killbefore=['iexplorer','firefox.exe','edge.exe'])

def update_package():
    wget('https://go.microsoft.com/fwlink/?LinkID=229321','Silverlight_x64.exe')
    wget('https://go.microsoft.com/fwlink/?LinkId=229320','Silverlight.exe')

    vers = get_file_properties('Silverlight_x64.exe')['FileVersion']

    os.chdir(os.path.dirname(__file__))

    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())

    pe.version = vers + '-0'
    pe.save_control_to_wapt(os.getcwd())



if __name__ == '__main__':
    update_package()

    

manifest

[["WAPT/icon.png", "cf5a139167d6244a6b4594771ba1f2b41cc02d48"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "557e60050809687d56525e6ac46df9c0e02ccae6"], ["Silverlight.exe", "e7478f9995ac6f9309034a85d78e1c61aba5a29f"], ["Silverlight_x64.exe", "ad8db31020463e825c0b620d93477b5321c072d8"], ["setup.py", "f280dfac1e2ea362f6b6efe9efea8d46f48dc378"], ["WAPT/control", "8a9fdedc5ca4f834df886202c967a957c22d8acf"]]