Page 1 of 1
How to Exclude dotnet 47
Posted:
18.02.2019, 09:35
by Updater1
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
Re: How to Exclude dotnet 47
Posted:
18.02.2019, 12:44
by hbuhrmester
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.
Re: How to Exclude dotnet 47
Posted:
18.02.2019, 13:12
by Updater1
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
Re: How to Exclude dotnet 47
Posted:
18.02.2019, 15:46
by hbuhrmester
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.
Re: How to Exclude dotnet 47
Posted:
21.02.2019, 14:34
by WSUSUpdateAdmin
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
Re: How to Exclude dotnet 47
Posted:
21.02.2019, 14:50
by Updater1
Hi,
The problem is that we still want c++ and .net 4.6, it is only .net 4.7 we don't want
/updater1
Re: How to Exclude dotnet 47
Posted:
21.02.2019, 16:56
by WSUSUpdateAdmin
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
Re: How to Exclude dotnet 47
Posted:
22.02.2019, 05:39
by Updater1
I will use the next release
Thank you very much for the fast response
Re: How to Exclude dotnet 47
Posted:
22.02.2019, 14:11
by WSUSUpdateAdmin
Voilà.