# -*- 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 = []
# command(s) to launch to remove the application(s)
uninstallstring = []
# list of required parameters names (string) which canb be used during install
required_params = []
def get_registry_value(key, subkey, value):
import _winreg
key = getattr(_winreg, key)
handle = _winreg.OpenKey(key, subkey)
(value, type) = _winreg.QueryValueEx(handle, value)
return value
def install():
global uninstallstring
exe = makepath(programfiles,"Internet Explorer","iexplore.exe")
if Version(get_file_properties(exe)['ProductVersion']) >=Version('11.0.9600'):
print("IE11 deja installe")
else:
if isrunning('iexplore.exe'):
print("Fermeture d'Internet explorer")
killalltasks('iexplore.exe')
print("Installation IE 11")
if iswin64():
run('IE11-Windows6.1-x64-fr-fr.exe /quiet /no-default /norestart')
else:
run('IE11-Windows6.1-x86-fr-fr.exe /quiet /no-default /norestart')
uninstallstring = ['wusa /uninstall /KB:2841134']