tis-dotnetfx4.7 4.7.2046-8

  • package : tis-dotnetfx4.7
  • version : 4.7.2046-8
  • description : dot net FX 4.7 Framework CLient. replace 4/4.5/4.5.1/4.5.2/4.6/4.6.1/4.6.2
  • maintainer : TIS <technique@tranquil-it-systems.fr>
  • date : 2017-11-07 13:32:29

setup.py

from setuphelpers import *
import platform

uninstallkey=[]

def install():
    # should be uninstall older dotnet framework? 4.6.2 superseed 4/4.5/4.5.1/4.5.2/4.6/4.6.1
    if windows_version() >= WindowsVersions.Windows10:
        dot_net_release = 460798
    else:
        dot_net_release = 460805
    actual_release = registry_readstring(HKEY_LOCAL_MACHINE,'SOFTWARE/Microsoft/NET Framework Setup/NDP/v4/Full','Release')
    if not actual_release: actual_release = 0
    print("installing Dot Net fx 4.7 - Release %s" % dot_net_release)
    if platform.win32_ver()[1] <> 'XP':
        if actual_release < dot_net_release:
            run("NDP47-KB3186497-x86-x64-AllOS-ENU.exe /q /norestart",accept_returncodes=[0,3010])
            installed_release = registry_readstring(HKEY_LOCAL_MACHINE,'SOFTWARE/Microsoft/NET Framework Setup/NDP/v4/Full','Release')
            if  installed_release < dot_net_release:
                error('Microsoft .NET Framework 4.7 not found after install - Release %s' % installed_release)
            print("After install, restarting your computer is recommended.")
        else:
            print('Already there or superior - Installed release is : %s' % actual_release)
    else:
        print("dotnet fx4.7 is not available for Windows XP")

    ## Documentation :
    ## DotNet product version numbering : https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed


    

Changelog

No changelog
    

manifest.sha256

[["WAPT/icon.png", "2a71b239380b5a4c0c958bb17ff4b06be242dfda1460b00f5f96b324d34a1174"], ["WAPT/certificate.crt", "20f25d6b242159077345379865f8e0d84bdc9e4764190f1aa6cb3816bcabd341"], ["WAPT/wapt.psproj", "795d36d10109ca85357285f79090fac2be856e5830ea31fa913cc55cb825807b"], ["NDP47-KB3186497-x86-x64-AllOS-ENU.exe", "24762159579ec9763baec8c23555464360bd31677ee8894a58bdb67262e7e470"], ["setup.py", "a72db4766712b2c77afcb627e79c2c6ddd58f60d2d103ccc8911ccbbccabce8e"], ["WAPT/control", "c1fda6939863545578a3eb116da5f17bcb88c73bb659501ddc3bbf6ecbb5f9fb"]]