How to Exclude dotnet 47

How to Exclude dotnet 47

Postby Updater1 » 18.02.2019, 09:35

Hi,
I have been following a lot of different articles trying to exclude dot net framework 4.7 from being downloaded and installed, but with absolutely no luck :(
Does anyone have the recipe of how to exclude ndp47 and ndp472 completely?

A small clarification: by using the exclude files ExcludeList-dotnet-x**.txt the ndp47 files are not downloaded to client\dotnet\x**-glb folders, but they are still present inclient\dotnet folder.

/Updater1
Updater1
 
Posts: 7
Joined: 14.06.2018, 08:54

Re: How to Exclude dotnet 47

Postby hbuhrmester » 18.02.2019, 12:44

The .NET Framework installers are statically defined in the files wsusoffline/static/StaticDownloadLinks-dotnet-*.txt.

Put your exclude pattern in a new file wsusoffline/exclude/custom/ExcludeListForce-all.txt . It is meant to work for both static and dynamic downloads.

Don't use the empty file exclude/ExcludeListForce-all.txt, because it won't be evaluated. As with other user created files, you need to create a new file with the same file name in the custom subdirectory.
hbuhrmester
 
Posts: 525
Joined: 11.10.2013, 20:59

Re: How to Exclude dotnet 47

Postby Updater1 » 18.02.2019, 13:12

Thanks, I have tried, but it still downloads the ndp472 :(

I'm wondering if I'm using the correct format in the exclude file?

Content of wsusoffline\exclude\custom\ExcludeListForce-all.txt:
ndp47-
NDP47-
ndp472-
NDP472-


Output from console:
Code: Select all
--2019-02-18 13:02:30--  http://download.microsoft.com/download/6/E/4/6E48E8AB-DC00-419E-9704-06DD46E5F81D/NDP472-KB4054530-x86-x64-AllOS-ENU.exe
Connecting to XXX.XXX.XXX.XXX:XXXX... connected.
Proxy request sent, awaiting response... 200 OK
Length: 83943272 (80M) [application/octet-stream]
Saving to: '../client/dotnet/NDP472-KB4054530-x86-x64-AllOS-ENU.exe'

NDP472-KB4054530-x8 100%[===================>]  80,05M  3,97MB/s    in 16s

2019-02-18 13:02:46 (5,08 MB/s) - '../client/dotnet/NDP472-KB4054530-x86-x64-AllOS-ENU.exe' saved [83943272/83943272]


The Wsusoffline\client\dotnet folder contains the ndp472 files
Last edited by Gerby on 20.02.2019, 07:57, edited 1 time in total.
Reason: Inserted code tag for improved readability.
Updater1
 
Posts: 7
Joined: 14.06.2018, 08:54

Re: How to Exclude dotnet 47

Postby hbuhrmester » 18.02.2019, 15:46

Then there is no supported way to exclude the English installer for .NET Framework 4.7.2.

You can, of course, remove the download link from the file wsusoffline/static/StaticDownloadLinks-dotnet.txt, but these files will be replaced at some point, either by an incremental update of the static download definitions, or by the next upgrade to a new version of WSUS Offline Update.

To get rid of the German language pack, you could run the script RemoveGermanLanguageSupport.cmd. That much should work, but the English installer can't be removed, because it is needed for all other languages as well.
hbuhrmester
 
Posts: 525
Joined: 11.10.2013, 20:59

Re: How to Exclude dotnet 47

Postby WSUSUpdateAdmin » 21.02.2019, 14:34

Hi.

Actually, I don't know where the problem is here.
If I uncheck the option "Include C++ Runtime Libraries and .NET Frameworks", nothing happens to ...\client\dotnet; the directory is not even created on a plain "installation"!

Cheers,
Torsten
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38

Re: How to Exclude dotnet 47

Postby Updater1 » 21.02.2019, 14:50

Hi,

The problem is that we still want c++ and .net 4.6, it is only .net 4.7 we don't want

/updater1
Updater1
 
Posts: 7
Joined: 14.06.2018, 08:54

Re: How to Exclude dotnet 47

Postby WSUSUpdateAdmin » 21.02.2019, 16:56

Hi.

please use r1015 (or the next release coming soon) and provide a file ..\exclude\custom\ExcludeListForce-all.txt containing

Code: Select all
ndp47

, as hbuhrmester suggested.

Regards,
Torsten Wittrock
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38

Re: How to Exclude dotnet 47

Postby Updater1 » 22.02.2019, 05:39

I will use the next release
Thank you very much for the fast response :-)
Updater1
 
Posts: 7
Joined: 14.06.2018, 08:54

Re: How to Exclude dotnet 47

Postby WSUSUpdateAdmin » 22.02.2019, 14:11

Voilà. :)
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38


Return to Verschiedenes / Miscellaneous

Who is online

Users browsing this forum: No registered users and 48 guests