Silent .NET Maker—by Tomcat76 to integrate all the .Net Frameworks into your XPCD.
Objective
Integrate (not slipstream) the following into an unattended XPCD:
- .Net Framework v1.1
- .Net Framework v2.0 + SP1
- .Net Framework v3.0 + SP1
- .Net Framework v3.5
- Provides an opportunity to install applications that require .Net Framework 2.0.
- Ensures that the WebClient Service does not error and will run correctly.
- Minimizes the size of the .Net Framework packages required.
- Requires two 3rd party tools:
- An SFX archiver (WinRar, 7Zip, etc.).
- Silent .Net Maker, by Tomcat76 (I believe you could also user RogueSpear's .Net addons as well but I don't know anything about them.)
- An SFX archiver (WinRar, 7Zip, etc.).
- The installation is as close to supported-by-Microsoft as possible.
- It is as simple as possible to integrate into an XPCD.
Version: 1.0
Last Update: 04:00 PM 01/11/2008 (GMT -5)
Source Materials:
- Aaron Stebner's WebLog—Aaron Stebner, Microsoft Corporation
- How the full install packages for the .NET Framework 3.0 and the .NET Framework 3.5 differ
- How to create an installable layout for the final release of the .NET Framework 3.5
- Workaround to allow pre-installing the .NET Framework 2.0 during the T13 phase of OS setup using svcpack.inf
- How the full install packages for the .NET Framework 3.0 and the .NET Framework 3.5 differ
- MSFN Forums threads:
- Silent .NET Maker—Tomcat76
The similarities end there. Sun made Java Runtime Environments backward compatible—if you download and install the most recent version, you generally no longer require any older versions. Unfortunately, Microsoft did not create all .Net Frameworks to be backward compatible. If you want to be able to run everything .Net, then you need all the currently available .Net Frameworks. If you know which .Net Framework version each of your .Net applications require, then you might be able to get by only installing the required version. This thinking breaks down a little bit, because .Net Framework v3.5 requires v3.0 SP1, and v2.0 SP1; and .Net Framework v3.0 requires v2.0. However, .Net Framework v1.1 still remains independent of the others.
Microsoft has recently released the following .NET Framework software downloads:
- Problems Fixed in .Net Framework 2.0 SP1 (2007-12-27)
- Problems Fixed in .Net Framework 3.0 SP1 (2007-12-27)
- .Net Framework 3.5 (2007-12-17)
IMPORTANT: When using Silent .Net Maker (" SNM.cmd"), only create the DNF11.exe and DNF20.exe packages—skip creating the DNF30.exe package altogether. You can also skip downloading any Microsoft Updates that only apply to .Net Framework 3.0.
I believe MSFN Forums member RogueSpear has also created .Net Framework packages which are widely used. I have never used these, nor do I know where to download them. However, I suspect that these will work just fine, so long as .Net Framework 3.0 is not included. (If someone could test this out and report back, I will update this guide accordingly.)
- .Net Framework v2.0 SP1 (i.e. SP1 only)
- .Net Framework v3.0
- .Net Framework v3.0 SP1
- .Net Framework v3.5.
- Download and install WinRar, 7Zip, (or similar). I use WinRar, but it should not be too hard to do any of this with any similar tool.
- Download .NET Framework 3.5 Full Redistributable Package (197 MB) to the root folder of your hard disk drive. This file contains:
- .NET Framework 2.0
- .NET Framework 3.0
- .NET Framework 2.0 SP1
- .NET Framework 3.0 SP1
- .NET Framework 3.5.
- 32-bit Windows XP and Vista.
- 64-bit Windows XP and Vista.
- .NET Framework 2.0
- Execute the command below to extract the downloaded executable to C:\DNF35_Work.
dotnetfx35.exe /X:C:\DNF35_Work
- As extracted, there are some unnecessary subfolder levels; list the folder below, select the one file and the four subfolders listed below, and drag them all directly under C:\DNF35_Work. Afterward, delete the WCU subfolder from under C:\DNF35_Work.
Before:
C:\DNF35_WORK | \---WCU | \---DOTNETFRAMEWORK | dotNetFx35setup.exe | +---dotNetFX20 +---dotNetFX30 +---dotNetFX35 \---dotNetMSP
After:
C:\DNF35_WORK | dotNetFx35setup.exe | +---dotNetFX20 +---dotNetFX30 +---dotNetFX35 \---dotNetMSP
- Now give the fat lady her diet, by deleting only the files and subfolders noted below. Since we are creating an installer for 32-bit Windows XP, we do not require any 64-bit installation files. We also do not require the .Net Framework v2.0 files. This will take the folder size from about 210,247 KB down to about 67,725 KB.
C:\DNF35_WORK | +---dotNetFX20 .................... (delete this folder) | +---dotNetFX30 | | Netfx30a_x64.msi .......... (delete this file) | | RGB9RAST_x64.msi .......... (delete this file) | | WCF_64.msp ................ (delete this file) | | WCS_64.msp ................ (delete this file) | | WF_64.msp ................. (delete this file) | | WIC_x64_enu.exe ........... (delete this file) | | WPF1_64.msp ............... (delete this file) | | WPF2_64.msp ............... (delete this file) | | WPF_Other_64.msp .......... (delete this file) | | XPSEPSC-amd64-en-US.exe ... (delete this file) | | | \---x64 ....................... (delete this subfolder) | +---dotNetFX35 | +---ia64 ...................... (delete this subfolder) | | | \---x64 ....................... (delete this subfolder) | \---dotNetMSP | \---x64 ....................... (delete this subfolder)
- From the remaining folders and files in C:\DNF35_WORK, create a self-extracting archive that executes the following command:
dotNetFx35setup.exe /qb /norestart
The command above will display a progress bar during installation, but it will not require user interaction (unattended installation). Change it to the command below for a complete silent installation.
dotNetFx35setup.exe /qn /norestart
NOTE: Do not post questions to this thread how to create a self-extracting executable (SFX). That topic is well covered in other threads (or in the help files of such tools). However, if you are using WinRar to create an SFX archive, here is a working WinRar comment:
;The comment below contains SFX script commands Setup=dotNetFx35setup.exe /qb /norestart Silent=1 TempMode Overwrite=1 Title=.Net Framework 2.0 SP1, 3.0 SP1, 3.5 Text { Install Includes: • .Net Framework 2.0 SP1 (SP1 only) • .Net Framework 3.0 SP1 (SP0 + SP1) • .Net Framework 3.5 }
NOTE: Do not post questions to this thread how to create a RunOnceEx.cmd or regarding such issues. That topic is well covered in the Unattended Guide!
- All Issues documented in Silent .Net Maker, by Tomcat76 still apply. Read that thread throughly and carefully!
- After .NET Framework 3.5 Full Redistributable Package is installed, Windows/Micorosoft Update will erroneously list the optional software update below.
KB932471 -> FIX: Error message when you try to open or to create a protected XPS document by using the XPS viewer that is included with the .NET Framework 3.0: "Cannot open this document because your permissions have expired"
Download (Microsoft Catalog) -› 413 KB (2007-06-26)
NOTE: Not only is the update listed above not required (it is already included in .NET Framework 3.5 Full Redistributable Package), but it will not install correctly anyway! Both errors are on the part of the Windows Update itself, not on the part of this installation guide. In fact, you would still see this update listed (and it still would not install for you), if you manually installed the whole bloody .Net Framework 3.5 distributable on a clean Windows XP installation without integrating it or slimming it down at all. See this MSDN Forums thread for more information.
WORKAROUND
In the Microsoft newsgroups, an MVP recommended that people to just hide (ignore) the update listed above. To hide this update during your unattended XPCD installation, read the How to Obtain a Clean or Customized DataStore.edb section of my GUIDE: Download Everything Microsoft.
This post has been edited by DarkShadows: 20 July 2008 - 12:30 PM



Help


Back to top









