tis-rsat-w8

1.0-1
Remote Server Administration Tools (RSAT) for Windows 8, 8.1 2012 and 2012 R2
644 downloads
Download

  Description 

  • package : tis-rsat-w8
  • version : 1.0-1
  • architecture : x86
  • categories : System and network
  • maintainer : WAPT Team,Jimmy PELÉ,Hubert TOUVET
  • description : Remote Server Administration Tools (RSAT) for Windows 8, 8.1 2012 and 2012 R2
  • locale : all
  • target_os : windows
  • min_os_version : 6.2
  • max_os_version : 6.3.9999
  • min_wapt_version : 1.5
  • sources :
  • installed_size :
  • impacted_process :
  • description_fr : Outils d'administration à distance (RSAT) pour Windows 8, 8.1 2012 et 2012 R2
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Microsoft
  • licence : Freeware
  • signature_date : 2020-02-27T21:41:09.411522
  • Homepage : https://www.microsoft.com/download/details.aspx?id=39296

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *
from subprocess import CalledProcessError

uninstallkey = []

# Declaring specific app values (TO CHANGE)
bin_name_63 = 'Windows8.1-KB2693643-x86.msu'
bin_name_62 = 'Windows6.2-KB2693643-x86.msu'
url_dl_63 = 'https://download.microsoft.com/download/1/8/E/18EA4843-C596-4542-9236-DE46F780806E/Windows8.1-KB2693643-x86.msu'
url_dl_62 = 'https://download.microsoft.com/download/4/3/F/43FAC524-F605-426E-A2AE-EAD03D264FDE/Windows6.2-KB2693643-x86.msu'


def install():
	# Getting the used storage on programfiles before installation (place it on the top)
    get_disk_free_space_before = get_disk_free_space(programfiles)

    # Installing the package
    if windows_version() >= '6.2' and windows_version() < '6.2.9999':
        with EnsureWUAUServRunning():
            try:
                run(r'wusa.exe "%s" /quiet /norestart' % bin_name_62)
            except CalledProcessError as e:
                if e.returncode == 2359302:
                    pass
    elif windows_version() >= '6.3' and windows_version() < '6.3.9999':
        with EnsureWUAUServRunning():
            try:
                run(r'wusa.exe "%s" /quiet /norestart' % bin_name_63)
            except CalledProcessError as e:
                if e.returncode == 2359302:
                    pass
    else:
        print('This Windows version is not compatible with this package')
        pass

    print('Activating 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]))

	# Return used storage of the program. (place it on the bottom)
    get_disk_free_space_after = get_disk_free_space(programfiles)
    free_space_after_diff = get_disk_free_space_before - get_disk_free_space_after
    print("Storage used: " + str(free_space_after_diff))


def uninstall():
    with EnsureWUAUServRunning():
        run('wusa.exe /uninstall /kb:2693643  /quiet /norestart')


def update_package():
    print('Download/Update package content from upstream binary sources')

    # Getting proxy informations from WAPT settings
    proxy = {}
    if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxy = {'http':proxywapt,'https':proxywapt}

    # Downloading latest binaries
    if not isfile(bin_name_63):
        print('Downloading: ' + bin_name_63)
        wget(url_dl_63,bin_name_63,proxies=proxy)
        print('Update package done. You can now build-upload your package')

    if not isfile(bin_name_62):
        print('Downloading: ' + bin_name_62)
        wget(url_dl_62,bin_name_62,proxies=proxy)
        print('Update package done. You can now build-upload your package')


if __name__ == '__main__':
    update_package()


										

  Changelog 


No changelog
  manifest.sha256 
[["WAPT/icon.png","4a5dca5829cfca39f879e051a117fdb5c41a72bf26bee9b87cd78c45fdb5f141"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","510d3af6fcf8f2eae5db684bb830ea9845576e76872b9b10854efaea6e4a4cd8"],["Windows6.2-KB2693643-x86.msu","050aefe2568de7e9e28d75c6752a8287cbbb0f2a0f2be5dd0e0c75ba29aff941"],["setup.py","6fc083de739ee93d3e0454f22b8f8f89956428c16f466efd6f4f3f17b2d71778"],["Windows8.1-KB2693643-x86.msu","eb62cfabdc0c3231a1ba2d5310f4ff1daf6294b89b143cc10b255becb1da5b75"],["WAPT/control","3dafb2344f3ae5d794341f865e0d7d64c8fb1b6324a785b57b39edb111ca2b0a"]]