Hi all I am looking for the correct way to inject the Microsoft .NET Framework 4 as I have done with all the other updates. This is the command that i use, but it ignours the Microsoft .NET Framework 4 exe file.. Dism.exe /Mount-Wim /WimFile:%~dp0install.wim /Index:1 /MountDir:%~dp0MOUNT Dism.exe /image:%~dp0MOUNT /Add-Package /PackagePath:"%~dp0x86" Dism.exe /Unmount-Wim /MountDir:%~dp0MOUNT /commit Thanks
If anyone else wants to do this, here is my setupcomplete.cmd... Code: @echo off for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\sources\install.wim set CDROM=%%i: echo Found CD-Rom as drive %CDROM% ::Begin hotfix install REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /V "EnableLUA" /T "REG_DWORD" /D "0" /F :NET Framework 4 echo Installing .NET 4 Framework start /wait %CDROM%\updates\dotNetFx40_Full_x86_x64.exe /passive /norestart start /wait %CDROM%\updates\NDP40-KB2416472-x86.exe /passive /norestart start /wait %CDROM%\updates\NDP40-KB2446708-x86.exe /passive /norestart start /wait %windir%\Microsoft.NET\Framework\v4.0.30319\ngen executequeueditems ::all processing finished, delete used files, and EXIT:: :CLEANUP ::SHUTDOWN /R /T 60 IF EXIST %windir%\Setup\scripts RD /S /Q %windir%\Setup\scripts >nul DEL /F /Q %0% >nul exit
Check my sig you will find a updated slim .net4, you want to have it do ngen executequeditems run it with the /ain switch BTW there is a way to get .net4 into your image but it involves sysprep (installing win7, installing .net4, capturing image), my sig also has links to videos describing this but I have to re-upload them
@NICK@NUMBER11 Think you should put the coding in code tags, as the word "current" as a space in between.
Thanks dre022392, done as requested No here is a question do i need to call setupcomplete.cmd from somewhere?
Why couln't MS just follow the standard MSU and cab layout all updates and SPs have? It would make it possible to dism it. The changes made by the .net framework install are less drastic then those of an SP install, and even an SP can be dismed with a little efford...
heads up! noob here,,, what about the updates that requires genuine windows, will these install fine via setupcomplete.cmd if i left the activation part of windows untouched at this point? ...
Just a heads up, instead of just installing .net 4.0 with the setupcomplete.cmd,, you can replace the .Net 4.0 installer with the full .Net 4.5 installer. It installs all prior .Net 4 security updates along with .Net 4.0 & .Net 4.5. Saves alot of time and alot unneeded updates
so the path to the loader is :Windows\Windows Loader\Windows Loader.exe? doz your setupcomplete do a cleanup? lastly how much time do we have to install apps etc. with setupcomplete before install freezes lol?
Yes, I have my WindowsLoader.exe in its own folder with everything that is included in the original zip and yes, the cleanup is at the end of the script. As far as updates to the setupcomplete.cmd goes, setup should not freeze at all