tis-ie9 9.0.8112-2

  • package : tis-ie9
  • version : 9.0.8112-2
  • description : Windows Internet Explorer 9 (Microsoft Corporation) 32b, 64b, Vista and 7
  • maintainer : htouvet
  • date : 2018-02-27 19:00:53

setup.py

# -*- coding: utf-8 -*-
from setuphelpers import *
from urlparse import urlparse

uninstallkey = []

if windows_version() < Version("6.1") :
  print'Using URLs for Windows VISTA and Server 2008'
  URL32 = {
    'en':'http://download.microsoft.com/download/0/8/7/08768091-35BC-48E0-9F7F-B9802A0EE2D6/IE9-WindowsVista-x86-enu.exe',
    'de':'http://download.microsoft.com/download/1/E/9/1E9DE3C7-0C84-41C8-BBED-997EB0C98CCA/IE9-WindowsVista-x86-deu.exe',
    'fr':'http://download.microsoft.com/download/2/D/A/2DA4583E-D889-4589-8DAF-71C6EE874A49/IE9-WindowsVista-x86-fra.exe',
    'es':'http://download.microsoft.com/download/6/7/6/67666836-7A97-48D9-82BD-6E76B2A9D659/IE9-WindowsVista-x86-esn.exe',
    'nl':'http://download.microsoft.com/download/5/F/9/5F9BCA6C-835C-4B38-B6AE-6D5B62DE048D/IE9-WindowsVista-x86-nld.exe',
    'ja':'http://download.microsoft.com/download/6/C/0/6C003240-6F63-4FC0-82EE-C451BF00A50D/IE9-WindowsVista-x86-jpn.exe',
  }
  URL64 = {
    'en':'http://download.microsoft.com/download/7/C/3/7C3BA535-1D8C-4A87-9F1D-163BBA971CA9/IE9-WindowsVista-x64-enu.exe',
    'de':'http://download.microsoft.com/download/8/3/2/83205D42-C4DE-435E-AF10-4919CBDB3A13/IE9-WindowsVista-x64-deu.exe',
    'fr':'http://download.microsoft.com/download/3/0/1/301FFBDB-AB53-4309-BB2F-C041BC09B782/IE9-WindowsVista-x64-fra.exe',
    'es':'http://download.microsoft.com/download/7/2/2/722AEF58-EE19-4051-AB2A-236E71B859F4/IE9-WindowsVista-x64-esn.exe',
    'nl':'http://download.microsoft.com/download/D/E/B/DEB51A98-9013-440C-9D9D-FCD3A23BEB39/IE9-WindowsVista-x64-nld.exe',
    'ja':'http://download.microsoft.com/download/5/1/F/51F0DA3B-831A-46D6-9132-6329FAEB0379/IE9-WindowsVista-x64-jpn.exe',
  }
else:
  print'Using URLs for Windows VISTA and Server 2008'
  URL32 = {
    'en':'http://download.microsoft.com/download/C/3/B/C3BF2EF4-E764-430C-BDCE-479F2142FC81/IE9-Windows7-x86-enu.exe',
    'de':'http://download.microsoft.com/download/F/6/4/F6414410-F454-43BA-834E-1B4A7C1E774C/IE9-Windows7-x86-deu.exe',
    'fr':'http://download.microsoft.com/download/B/4/3/B434518B-81E0-4110-AB1E-FFF3AFA3F761/IE9-Windows7-x86-fra.exe',
  }
  URL64 = {
    'en':'http://download.microsoft.com/download/C/1/6/C167B427-722E-4665-9A40-A37BC5222B0A/IE9-Windows7-x64-enu.exe',
    'de':'http://download.microsoft.com/download/B/B/B/BBBB0466-AE6E-46B9-AFE8-523A6C9E4232/IE9-Windows7-x64-deu.exe',
    'fr':'http://download.microsoft.com/download/3/A/1/3A1B3560-36F2-449B-8A35-20B6F897BEFA/IE9-Windows7-x64-fra.exe',
  }


def install():
    print('installing Internet Explorer 9')

    silent_args = '/Passive /NoRestart'
    valid_exit_codes = (0,3010,40013) #3010: reboot required, 40013: already installed

    print "Detecting Locale..."
    lang = get_language()
    if lang in URL32:
        print "Switching to locale %s"%lang
    else:
        lang = 'en'
        print "Using default "%lang

    if iswin64():
        installer = URL64[lang].split('/')[-1]
    else:
        installer = URL32[lang].split('/')[-1]

    if not isfile(installer):
        update_sources()
    if not isfile(installer):
        error('Installer for your locale and platform (%s) is not supplied in the package, nor downloadable.'%installer)
    install_exe_if_needed(installer,silent_args,accept_returncodes = valid_exit_codes)
    print('Reboot is probably required')

def update_sources():
    print "Detecting Locale..."
    lang = get_language()
    if lang in URL32:
        print "Switching to locale %s"%lang
    else:
        lang = 'en'
        print "Using default "%lang

    installer = URL64[lang].split('/')[-1]
    wget(URL64[lang],installer)
    installer = URL32[lang].split('/')[-1]
    wget(URL32[lang],installer)

if __name__ == "__main__":
    update_sources()
    

Changelog

No changelog
    

manifest.sha256

[["IE9-Windows7-x86-fra.exe", "2b61f4d16154555f0a346e4254ce3edbce1e073572925ede3128e09f15f05ede"], ["WAPT/wapt.psproj", "f9f6105e60e666cc2df22a221c74df31bed648099d3e59ee94eda0bf9d03296c"], ["IE9-Windows7-x64-fra.exe", "51a93d42d1f4dbb61d54a66085053343cae5d13daeed66d88eb248ad6f3fc9b5"], ["IE9-WindowsVista-x64-fra.exe", "65956564a908b1f0f799842bb94f7650cd924456ce9d8a454b601fb692cb2d32"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["setup.py", "38f52b9345da497aaed0cb56bdba2aa88521e255cfe08f7f39779e237b7e28ac"], ["IE9-WindowsVista-x86-fra.exe", "fcc5da466c894929859834243126d138030f39ae482666f253406c9fc46b268b"], ["WAPT/control", "e7a8e3adef0ebff2c7e1b29b3219345ced2fbcea2d13449024b70e8c48154905"]]