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 : 2018-02-27 19:08:06

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

    

Changelog

No changelog
    

manifest.sha256

[["WAPT/icon.png", "78fdcfef0fb6e9e03de7739451743f18772192ccb9d4713f1e3ce359ea2458c2"], ["Silverlight_x64.exe", "8d263a6f42a378073b6f057f242a42076f9f4082340153c2e27ecc959c5036aa"], ["WAPT/wapt.psproj", "795d36d10109ca85357285f79090fac2be856e5830ea31fa913cc55cb825807b"], ["Silverlight.exe", "88e1b76bdf799478a72fa27db0bfe7bc5d02cc7e53675967399300448f0e266f"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["setup.py", "7c7a9f85d717e4e8ada3846b6dfc9779dbfb7614d075273aafa4522739e5cbfb"], ["WAPT/control", "00cfeba711266e1b188ed878e1a951fbf578e714ae746899d4939cd703cf582a"]]