DosProbie Posted October 17, 2012 Posted October 17, 2012 One of my pet peeves with Win8 is making the end user Install .NET framework 3.5 that is needed by a lot of apps. MS calls it a Feature on Demand (FoD).I wrote a .sfx and added to my setupcomplete but I also did a post install that installs directly off the USB or DVD Install disc. Anyway I am sure this subject has been on here before but if would help anyone I am adding my post install batch file .. DosProbie
xpclient Posted October 17, 2012 Posted October 17, 2012 Nice. Thanks for doing the work of finding the drive letter.
DosProbie Posted October 17, 2012 Author Posted October 17, 2012 Nice. Thanks for doing the work of finding the drive letter. No Problem, Hope it helps..I will tell you that its a heck of lot faster to install off of a USB approx. 45 seconds vs DVD which takes 5 minutes or longer.
skavenger Posted November 2, 2012 Posted November 2, 2012 Thank you.Very interesting.I have Win8 x64 Pro.I've tried to create a SFX for installing/activating it offline without the source-dvd.I've extracted and copied the folder sxs from inside the source-folder of the DVD to my location, created a CMD-File like this:install.cmd::@echo offcolor 1Etitle Microsoft .Net 3.5 Feature-Activation for Windows 8echo.echo Microsoft .Net 3.5 Feature-Activation for Windows 8echo.Dism /online /enable-feature /featurename:NetFx3 /All /Source:%~dp0sxs /LimitAccessThen i created a RAR-SFX containing the folder sxs and the script.Building it to extract to Temp-folder and then run install.cmd.But every time it gives me an error similar like this"A running 64bit-OS cannot use the 32bit-version of DISM."What is wrong?How have you created your SFX?PS: If i start the cmd-file directly by double-click - it works. Hm, why not with my SFX?TIA
skavenger Posted November 4, 2012 Posted November 4, 2012 (edited) Huh,i answer myself.First I switched from RAR-SFX to 7Zip-SFX.Then for the x86-version i created a standard-sfx with the usual commandDism /online /enable-feature /featurename:NetFx3 /All /Source:%~dp0sxs /LimitAccessFor the x64-version i do the same, except i used the "7zsd_LZMA_x64.sfx" for creating my SFX.Finally it's important to create a 64bit-sfx, if you plan to install it offline on 64bit--systems.so long Edited November 4, 2012 by skavenger
DosProbie Posted November 5, 2012 Author Posted November 5, 2012 I Used Winrar for my sfx , just copied the sources folder to a Net3.5 directory then ran from batch as current directory, I also added NoRestart as well...@echo off&color a::run.cmd:: current directorycd=%~dp0::Install-(disable restart)dism /online /enable-feature /featurename:NetFX3 /all /NoRestart /Source:%cd%\sources\sxs /LimitAccessexit
MgmTest Posted November 17, 2012 Posted November 17, 2012 Me Test batch File But Not work For Me.I Used Winrar for my sfx , just copied the sources folder to a Net3.5 directory then ran from batch as current directory, I also added NoRestart as well...@echo off&color a::run.cmd:: current directorycd=%~dp0::Install-(disable restart)dism /online /enable-feature /featurename:NetFX3 /all /NoRestart /Source:%cd%\sources\sxs /LimitAccessexit
jaclaz Posted November 17, 2012 Posted November 17, 2012 (edited) :: current directorycd=%~dp0Possibly:SET cd=%~dp0will actually give a value to the cd variable. Or, alternatively:::Install-(disable restart)dism /online /enable-feature /featurename:NetFX3 /all /NoRestart /Source:%~dp0sources\sxs /LimitAccessPlease note how the expansion of a full path such as %~dpn will result in a "full path" (and full paths always end with a backslash)jaclaz Edited November 17, 2012 by jaclaz
radix Posted November 17, 2012 Posted November 17, 2012 (edited) I copied sxs folders from both Windows 8 discs 32 bit and 64 bit.So, I have sxs_x64 and sxs_x86 folders (I renamed them) inside a folder called sources. On the same tree level with sources folder I've added the file Install.cmd. Install.cmd content:@ECHO OFF:: Check the operating system type (32 bit or 64 bit)IF NOT EXIST %SystemRoot%\SysWOW64 GOTO X86IF EXIST %SystemRoot%\SysWOW64 GOTO X64:: 32 bit:X86:: Install and disable restartdism /online /enable-feature /featurename:NetFX3 /all /NoRestart /Source:"%~dp0sources\sxs_x86" /LimitAccess:: 64 bit:X64:: Install and disable restartdism /online /enable-feature /featurename:NetFX3 /all /NoRestart /Source:"%~dp0sources\sxs_x64" /LimitAccess:: Exit the script:ENDEXITCheck the installation integrity with this tool: http://blogs.msdn.co...es/8999004.aspx Edited November 21, 2012 by radix
mara- Posted November 21, 2012 Posted November 21, 2012 You can activate this feature to be already installed. It same like Add features, just it can be applied directly to image. So no need to add additional files or do a separate install. This is faster and simpler. Just search for Windows Download Integrator which will do this automatically for you. Or you can search for DISM commands.
DosProbie Posted November 24, 2012 Author Posted November 24, 2012 Here's the link for Wds DL Intergrator over at MDL http://forums.mydigitallife.info/threads/36058-Windows-Download-Integrator
nemesis002 Posted September 6, 2013 Posted September 6, 2013 (edited) I got a working solution that works on Server 2012 and 2012 R2 so it must work on 8 and 8.1 too.It comes from old XP times and WPI.@ECHO OFFset tagfile=\setup.exefor %%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:%tagfile%" set CDROM=%%i:ECHO.ECHO.Adding Features to SRV2012R2 WorkstationECHO.dism /online /Enable-Feature /FeatureName:ServerMediaFoundation /NoRestartdism /online /Enable-Feature /FeatureName:DesktopExperience /all /NoRestartdism /online /Enable-Feature /FeatureName:WirelessNetworking /NoRestartdism /online /Enable-Feature /FeatureName:WindowsServerBackup /NoRestartdism /online /Enable-Feature /FeatureName:NetFx3 /all /Source:%CDROM%\sources\sxs /LimitAccess /NoRestartdism /online /Enable-Feature /FeatureName:NetFx3ServerFeatures /NoRestartEXITBasically the it searches for Setup.exe file from Windows and once found it sets drive letter to CDROM value that you use in script after for NetFx3.N Edited September 6, 2013 by nemesis002
MagicAndre1981 Posted September 7, 2013 Posted September 7, 2013 Only this applies to Client Windows:dism /online /Enable-Feature /FeatureName:NetFx3 /all /Source:%CDROM%\sources\sxs /LimitAccess /NoRestartThe rest are Server Features/Roles.
nemesis002 Posted September 7, 2013 Posted September 7, 2013 Yes correct.I should have posted it just for W8 and W81.But the most important is that it works.N
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now