tis-rsat-x64 1

  • package : tis-rsat-x64
  • version : 1
  • description : package for MS RSAT Remote server admin windows6.1-kb958830-x64 pour Win7 SP1
  • maintainer : Hubert TOUVET
  • date : 2017-07-20 15:56:37
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-155634
  • min_os_version :
  • min_wapt_version :

setup.py

# -*- coding: utf-8 -*-
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 = ['wusa.exe /uninstall /kb:958830  /quiet /norestart']

# list of required parameters names (string) which can be used during install
required_params = []

def install():
    # if you want to modify the keys depending on environment (win32/win64... params..)
    global uninstallkey
    global uninstallstring

    print('installing tis-rsat-x64')
    try:
        run(r'wusa.exe "Windows6.1-KB958830-x64-RefreshPkg.msu" /quiet /norestart')
    except CalledProcessError,e:
        if e.returncode == 2359302:
            pass

    print('Activation des features')
    print ('AD')
    features = [
        'RemoteServerAdministrationTools',
        'RemoteServerAdministrationTools-Roles',
        'RemoteServerAdministrationTools-Roles-AD',
        ]
    run(r'c:\windows\sysnative\dism.exe /online /enable-feature %s' % " ".join(['/featurename:%s' % f for f in features]))

    print ('AD-DS')
    features = [
        'RemoteServerAdministrationTools-Roles-AD-DS']
    run(r'c:\windows\sysnative\dism.exe /online /enable-feature %s' % " ".join(['/featurename:%s' % f for f in features]))

    print ('AD-DS-Snapins')
    features = [
        'RemoteServerAdministrationTools-Roles-AD-DS-SnapIns']
    run(r'c:\windows\sysnative\dism.exe /online /enable-feature %s' % " ".join(['/featurename:%s' % f for f in features]))

    print ('DNS')
    features = [
        'RemoteServerAdministrationTools-Roles-DNS',
        ]
    run(r'c:\windows\sysnative\dism.exe /online /enable-feature %s' % " ".join(['/featurename:%s' % f for f in features]))

    print ('GP')
    features = [
        'RemoteServerAdministrationTools-Features',
        'RemoteServerAdministrationTools-Features-GP',
        ]
    run(r'c:\windows\sysnative\dism.exe /online /enable-feature %s' % " ".join(['/featurename:%s' % f for f in features]))


    

manifest

[["setup.py", "5bf44a3ceeaabd4a62ca6e5c52d4997f75248ab1"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "d140401965341ede69880cd6342c5db7040324b2"], ["WAPT/control", "46146bfd1851ec4585a191cc1eb1fd4d7618d274"], ["Windows6.1-KB958830-x64-RefreshPkg.msu", "fe910cedc440115fcac24d854c55830a24250bdd"]]