BDD 2007

Unattended Installation for the .NET Framework 3.5

There seems to be a bit of confusion around the place about installing the .NET Framework 3.5 and it’s prerequisites. Firstly I’ll say that the .NET Framework 3.5 standalone redistributable package available from the Microsoft Download Center contains all the prerequisites for .NET 3.5 except the Windows Installer 3.1 Redistributable. Yes it’s true, everything you need is in the one file: dotnetfx35.exe.

Secondly there is some great information on deploying the .NET Framework 3.5 on MSDN at

You will see from the article above you can silently install the .NET Framework 3.5 but running the following command:

  • dotnetfx35.exe /q /norestart

Wow! Couldn’t be easier! However what if you’re in an environment where everything is installed via MSIs and undergoes a certain degree of package standardization before deployment??? I found myself in this situation and as it turns out there is a lot of information available on this as well. Aaron Stebner has a wealth of information on installing the .NET Framework. In particular:

There is also a batch script at the bottom of for creating the Administrator installation points. I had a few problems with the script on MSDN so I used my own version which is included below. Download dotnetfx35.exe from Microsoft Downloads and place it in a temp folder somewhere under a directory called 3.5. I used C:\netFramework\3.5 as my location. Then copy the batch file below into a file called Create35AdminInstall.cmd under C:\netFramework. Double-Click the Batch file and you’re away!! When the script is finished you will end up with admin install points for:

  • MSXML Parser 6 – msiexec /i netfx35_deploy\AdminInstallPoint\MSXML6_x86\msxml6.msi /qb-
  • RGB Rasterizer – msiexec /i netfx35_deploy\AdminInstallPoint\RGBRAST_x86\RGB9RAST_x86.msi /qb-
  • .NET Framework 2.0 SP1 – msiexec /i netfx35_deploy\AdminInstallPoint\NETFX20_x86\netfx20a_x86.msi /qb VSEXTUI=1
  • .NET Framework 3.0 SP1 – msiexec /i netfx35_deploy\AdminInstallPoint\NETFX30_x86\netfx30a_x86.msi /qb VSEXTUI=1
  • .NET Framework 3.5 – msiexec /i netfx35_deploy\AdminInstallPoint\netfx35_x86\vs_setup.msi  /qb VSEXTUI=1


@Echo Off
set WORKFOLDER=%~dp0netfx35_deploy
set dotNetFX35build=%WORKFOLDER%\dotnetfx35.exe
echo Creating Admin Install points for NETFX3 %PROCESSOR_ARCHITECTURE%

REM Create folders where work will be done
md “%WORKFOLDER%\extracted”
md “%WORKFOLDER%\AdminInstallPoint”
md “%WORKFOLDER%\logs”

REM Extract the files from the NETFX35 redist SFX
Echo Extract the files from the NETFX35 redist SFX
call “%~dp03.5\dotnetfx35.exe” /q /x:”%WORKFOLDER%\extracted”

REM ————————————————————
REM create the MSXML6 x86 admin install point
Echo Create the MSXML6 x86 admin install point
md “%WORKFOLDER%\AdminInstallPoint\MSXML6_x86”
call msiexec /a “%WORKFOLDER%\extracted\wcu\dotNetFramework\dotNetFX30\x86\msxml6.msi” /qb /l*v “%WORKFOLDER%\logs\MSXML6_x86.log” Targetdir=”%WORKFOLDER%\AdminInstallPoint\MSXML6_x86″

REM ————————————————————
REM create the RGBRAST x86 admin install point
Echo Create the RGBRAST x86 admin install point
md “%WORKFOLDER%\AdminInstallPoint\RGBRAST_x86”
call msiexec /a “%WORKFOLDER%\extracted\wcu\dotNetFramework\dotNetFX30\RGB9RAST_x86.msi” /qb /l*v “%WORKFOLDER%\logs\RGBRAST_x86.log” REBOOT=ReallySuppress Targetdir=”%WORKFOLDER%\AdminInstallPoint\RGBRAST_x86″

REM ————————————————————
REM Extract NETFX 35 x86 components
Echo Extract NETFX 35 x86 components
md “%WORKFOLDER%\extracted\netfx35_x86”
call “%WORKFOLDER%\extracted\wcu\dotNetFramework\dotNetFX35\x86\netfx35_x86.exe” /q /x: “%WORKFOLDER%\extracted\netfx35_x86”

REM ————————————————————
REM create the NETFX35 x86 admin install point
Echo Create the NETFX35 x86 admin install point
md “%WORKFOLDER%\AdminInstallPoint\netfx35_x86”
call msiexec /qb /a “%WORKFOLDER%\extracted\netfx35_x86\vs_setup.msi” USING_EXUIH=1 REBOOT=ReallySuppress /l*v “%WORKFOLDER%\logs\netfx35_x86.log” TARGETDIR=”%WORKFOLDER%\AdminInstallPoint\netfx35_x86″

REM ————————————————————
REM create the NETFX20 x86 SP1 admin install point
Echo Create the NETFX20 x86 SP1 admin install point

REM 2.0 SP1 files location
Set fx20=%WORKFOLDER%\extracted\wcu\dotNetFramework\dotNetFX20\
md “%WORKFOLDER%\AdminInstallPoint\NETFX20_x86”
call msiexec /a “%fx20%netfx20a_x86.msi” TARGETDIR=”%WORKFOLDER%\AdminInstallPoint\NETFX20_x86″
call msiexec /a “%WORKFOLDER%\AdminInstallPoint\NETFX20_x86\netfx20a_x86.msi” PATCH=”%fx20%ASPNET.msp;%fx20%CLR.msp;%fx20%CRT.msp;%fx20%NetFX_CA.msp;%fx20%NetFX_Core.msp;%fx20%NetFX_Other.msp;%fx20%PreXP.msp;%fx20%WinForms.msp;%fx20%DW.msp” USING_EXUIH=1 REBOOT=ReallySuppress /l*v “%WORKFOLDER%\logs\netfx20_x86.log”

REM msiexec.exe /i c:\netfx20sp1\x86\AIP\netfx20a_x86.msi /l*v %temp%\netfx20sp1x86log.txt /qb VSEXTUI=1

REM ————————————————————
REM create the NETFX30 SP1 x86 admin install point
Echo Create the NETFX30 x86 SP1 admin install point

REM 3.0 SP1 files location
Set fx30=%WORKFOLDER%\extracted\wcu\dotNetFramework\dotNetFX30\
md “%WORKFOLDER%\AdminInstallPoint\NETFX30_x86”
call msiexec /a “%fx30%netfx30a_x86.msi” TARGETDIR=”%WORKFOLDER%\AdminInstallPoint\NETFX30_x86″
call msiexec /a “%WORKFOLDER%\AdminInstallPoint\NETFX30_x86\netfx30a_x86.msi” PATCH=”%fx30%WCF.msp;%fx30%WCS.msp;%fx30%WF.msp;%fx30%WPF1.msp;%fx30%WPF2.msp;%fx30%WPF_Other.msp;%fx30%XPS.msp;%fx30%WF_32.msp;%fx30%WPF2_32.msp;%fx30%WPF_Other_32.msp” USING_EXUIH=1 REBOOT=ReallySuppress /l*v “%WORKFOLDER%\logs\netfx30_x86.log”


The batch file can be download (1.87 KB)

Read more

GImageX (ImageX GUI)

Head on over to Richard Smith’s blog to get GImageX. GImageX is a GUI for imageX. The original verison was written in AutoIT but this version has been completely rewritten in C++. The new version v2.0.1 BETA feature list on Richard’s site:

  • Native x86 and x64 versions entirely written in C++.  Tiny ~100KB executable.
  • Doesn’t use the imagex.exe utility at all – instead it uses the WIMGAPI interface (the wimgapi.dll file from the imagex directory)
  • Progress bars, time elapsed, time remaining, file counts have been added
  • Clean “abort” option
  • Ability to mount, change and get info on WIM images

So what are you waiting for, click here to get it.

Read more