Page 1 of 1

[SOLVED] tis-dotnetfx3.5 problem

Published: February 21, 2023 - 4:10 PM
by Zanef57
Good morning,
We are on version 2.3 of WAPT Discovery.
We have been experiencing an installation problem with the tis-dotnetfx3.5 package on Windows 11 PCs since 22H2.

I saw that in setup.py, the command looks for the Windows version to install .NET 3.5

Code: Select all

if windows_version() >= Version("10.0.22000"):  # Window 11 version 21H2 and newer
        with EnsureWUAUServRunning():
            if iswin64():
                run(
                    r'dism.exe /Online /Enable-Feature /FeatureName:NetFx3 /Source:"%s" /All /LimitAccess /quiet /norestart'
                    % makepath(basedir, "netfx3-w11v21h2x64")
                )
It's searching for Version("10.0.22000"), whereas in 22h2 on Windows 11 it's .22621?

Or is it the "netfx3-w11v21h2x64" package that is not valid for this version?

Here is the error message:

Code: Select all

Ensure wuauserv Auto Update option is disabled
re-enabling wuauserv previous state: 0
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 4074, in install_wapt
    exitstatus = setup.install()
  File "C:\WINDOWS\TEMP\waptk7tydc7z\setup.py", line 23, in install
  File "C:\Program Files (x86)\wapt\common.py", line 3851, in run
    return ensure_unicode(run(*arg, pidlist=self.pidlist,**args))
  File "C:\Program Files (x86)\wapt\waptutils.py", line 2112, in run
    raise CalledProcessErrorOutput(proc.returncode, cmd, ''.join(output))
waptutils.CalledProcessErrorOutput: Command 'dism.exe /Online /Enable-Feature /FeatureName:NetFx3 /Source:"C:\\WINDOWS\\TEMP\\waptk7tydc7z\\netfx3-w11v21h2x64" /All /LimitAccess /quiet /norestart' returned non-zero exit status 2148468767.
Output:
Erreur : 0x800f081f

Impossible de trouver les fichiers sources. 
Utilisez l'option « Source » pour indiquer l'emplacement des fichiers requis pour restaurer la fonctionnalité. Pour plus d'informations sur la spécification d'un emplacement source, voir https://go.microsoft.com/fwlink/?LinkId=243077.


CalledProcessErrorOutput: Command 'dism.exe /Online /Enable-Feature /FeatureName:NetFx3 /Source:"C:\\WINDOWS\\TEMP\\waptk7tydc7z\\netfx3-w11v21h2x64" /All /LimitAccess /quiet /norestart' returned non-zero exit status 2148468767.
Output:
Erreur : 0x800f081f

Impossible de trouver les fichiers sources. 
Utilisez l'option « Source » pour indiquer l'emplacement des fichiers requis pour restaurer la fonctionnalité. Pour plus d'informations sur la spécification d'un emplacement source, voir https://go.microsoft.com/fwlink/?LinkId=243077.
Thank you in advance for your answers.

Re: Problem with tis-dotnetfx3.5

Published: February 22, 2023 - 11:47 AM
by jpele
Hello,

You can download the ISO containing the feature on the MVLS platform or equivalent. The ISO is named: "SW_DVD9_Win_11_22H2_x64_MultiLang_LangPackAll_LIP_LoF_X23-12645.ISO". You can then integrate the dependency into the package.

For your information, dotnetfx35 has been EOL since January 12, 2016.

I'm noting a non-priority ticket on our end to add compatibility to Windows 11 v22h2. Thank you for your feedback.

Best regards,
Jimmy

Re: Problem with tis-dotnetfx3.5

Published: February 24, 2023 - 2:30 PM
by dcardon
Hi Jeremy,

basically, if you're in a hurry, you can update the package for the Win11 22H2 version using the installer Jimmy pointed out.

Otherwise, internally, we'll add a `max_os_version` to the package to exclude installations on Win11 22H2, and then you'll need to create the corresponding new package.

If you're in a hurry and have a support ticket for package creation, you can call your contact at Tranquil IT.

I'll create an internal ticket and mark the topic as resolved in the meantime.

Regards,

Denis

Re: [SOLVED] tis-dotnetfx3.5 problem

Published: March 2, 2023 - 10:57 AM
by Zanef57
Good morning,


I successfully downloaded an ISO "SW_DVD9_WIN_PRO_11_22H2.5_64BIT_FRENCH_PRO_ENT_EDU_N_MLF_X23-37772.iso" from the Microsoft website.
In the Source\sxs folder, I copied the file "microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab".

I modified the setup.py file by adding this line:

Code: Select all

if windows_version() >= Version("10.0.22621"):  # Window 11 version 22H2 and newer
        with EnsureWUAUServRunning():
            if iswin64():
                run(
                    r'dism.exe /Online /Enable-Feature /FeatureName:NetFx3 /Source:"%s" /All /LimitAccess /quiet /norestart'
                    % makepath(basedir, "netfx3-w11v22h2x64")
                )
Everything works perfectly.
Thank you for your answers.

Re: [SOLVED] tis-dotnetfx3.5 problem

Published: March 2, 2023 - 12:40 PM
by jpele
Hello,
Thank you for your feedback, I didn't think Microsoft was still including the dotnet35 offline installer in its ISOs. 😄

Re: [SOLVED] tis-dotnetfx3.5 problem

Published: May 17, 2023 - 12:30
by jpele
Hello,
FYI the package has been updated accordingly (https://wapt.tranquil.it/wapt-testing/t ... EPROD.wapt)