Détails du package

smp-dotnetfx3.5

retour Revenir à la liste des packages

smp-dotnetfx3.5

Fichier control :

package           : smp-dotnetfx3.5
version           : 3.5.30729-10
architecture      : all
section           : base
priority          : optional
name              : 
categories        : 
maintainer        : TIS <technique@tranquil-it-systems.fr>
description       : dot net framework 3.5
depends           : 
conflicts         : 
maturity          : 
locale            : 
target_os         : windows
min_os_version    : 
max_os_version    : 
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : a70f7bf5-4fd8-4ce2-b89a-dab5715ac25d
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 1e54425be03a2a3ea1a264b40d984c31f17a6a489a3b722acb993cbf6561e903
signature         : D6Lm0ov51+fv2v4O/58q2uwySeCNzkjbEM2wl04C9srqoYuPlJ7t+/IIaFZPhidSCiswN3tEiapWCdPCopOKMCVdgqwi/aiEEfhpf8yyUqRckRsbJ787jQzd1KKBeKyAyMug/s3hou2avQIUwqAUYvLdEYOxg5ZQ8O1KZreXyzN3xLtHGVYM6yGKqremR14KyyE2aSJKvJDfiLrtif3ViIwHf+srkIchnBITWsvF49itkCQfHn5T0hmJMQ5EjBevjybfx7ffwgEk6GbuycL638nFP5ADAME1Qs4qUarG/lVSb19YSnQPe8Et0GG5Qg/o+6APUb+aAt71JTz8WfxBhg==
signature_date    : 2020-07-04T01:18:41.935518
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,signer,signer_fingerprint,signature_date,signed_attributes



Fichier 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 *

uninstallkey = []
uninstallstring= []

def install():
    from common import Version
    try:
        dotnet35 = [ s for s in installed_softwares('Microsoft .NET Framework 3.5') if Version(s['version']) >= Version('3.5.30729')]
    except:
        dotnet35 = [ s for s in installed_softwares('Microsoft .NET Framework 3.5') if s['version'] >= '3.5.30729']

    #on windows 2008R2, dotnetfx3.5 is installed as a "feature" and cannot be installed with a separate download file.
    if platform.win32_ver()[0]=='2008ServerR2':
        run(r'c:\windows\sysnative\dism.exe /online /enable-feature /featurename:NetFx3')
    elif not dotnet35:
        print(run('dotnetfx35.exe /q /norestart'))
        print("After install, restart your computer is recommended.")

def uninstall():
    for dotnet in installed_softwares('Microsoft .NET Framework 3.5'):
        run(uninstall_cmd(dotnet['key']))