Win8 - Offline installation of .Net Framework 3.x

Discussion in 'Windows 8' started by mictlan, Aug 19, 2012.

  1. sunilkr

    sunilkr MDL Novice

    Nov 24, 2012
    1
    0
    0
    i tried , it says... Microsoft Windows [Version 6.2.9200] (c) 2012 Microsoft Corporation. All rights reserved.
    C:\Windows\system32>Dism /online /enable-feature /featurename:NetFx3 /All /Sourc e:D:\sources\sxs /LimitAccess
    Deployment Image Servicing and Management tool Version: 6.2.9200.16384
    Image Version: 6.2.9200.16384
    Enabling feature(s) [===========================65.8%====== ]
    Error: 0x800f081f
    The source files could not be found. Use the "Source" option to specify the location of the files that are required t o restore the feature. For more information on specifying a source location,.
    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
    C:\Windows\system32>... help me:(
     
  2. Shenj

    Shenj MDL Expert

    Aug 12, 2010
    1,556
    656
    60
    #22 Shenj, Nov 24, 2012
    Last edited by a moderator: Apr 20, 2017
    Code:
    dism.exe /online /enable-feature /featurename:NetFX3 /Source:X:\sources\sxs /LimitAccess
    where X:\ is the Path to your Windows 8 files, CD, Mounted ISO or extracted to a folder.. whatever
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. SpeedDream

    SpeedDream MDL Addicted

    Feb 20, 2012
    619
    121
    30
    awesome! I hated to install .net 3.5 online just to connect my xbox 360 controller when installing the driver
    just a question? I did your suggestion with 8's files in a pen drive and it went too fast like 2 seconds to 100%, is it that fast?
    cheers.
     
  4. coleoptere2007

    coleoptere2007 MDL Guru

    Apr 8, 2008
    3,311
    1,938
    120
    Fast or not, did it work ? That's essential ;)
     
  5. SpeedDream

    SpeedDream MDL Addicted

    Feb 20, 2012
    619
    121
    30
    i can confirm it works, but not permanently on new installs, I need to do the dism thing
    everytime I install W8 and adding .net 3.5 with turn windows features on or off or through
    directx setup, or games for windows live to name some apps that need 3.5 and trigger the installer

    anyway offline is way better than online, takes forever to get big files with this connection (3Mbit) and the default online installer, just like directx's web installer

    gta iv made me learn this:rolleyes:
     
  6. adit123tya

    adit123tya MDL Senior Member

    Oct 25, 2012
    397
    197
    10
    I don't know about directx... but for sure turning on feature in of netfx 3.5 in install.wim will avoid this installation on every reinstall of win 8
     
  7. moderate

    moderate MDL Guru

    Aug 31, 2009
    3,381
    2,479
    120
    #27 moderate, Nov 24, 2012
    Last edited by a moderator: Apr 20, 2017
  8. adit123tya

    adit123tya MDL Senior Member

    Oct 25, 2012
    397
    197
    10
    yep I did that itself work like charm... and if trying to install from the offline package it says that to run this application u require netfx 3.5... and asks if the user wants to turn that feature on
     
  9. HALIKUS

    HALIKUS MDL Addicted

    Jul 29, 2009
    526
    371
    30
    #29 HALIKUS, Nov 30, 2012
    Last edited by a moderator: Apr 20, 2017
    Is there a way to do this by downloading the needed files. I have an all in one batch script for manipulating the wims and it would be better if i didn't need the sxs folder. I just have the needed wims where i need them and i don't want to have to bother with the other files in the sources directory.

    Instead of
    Dism /image:%mount% /enable-feature /featurename:NetFX3 /Source:D:\sources\sxs /LimitAcces

    something like

    Dism /image:%mount% /enable-feature /featurename:NetFX3 /ALL
    to force it to get the needed files online.

    This is what i have so far. I would also love to know if there is a way to run this and have it repeat the script but have it do it to the next index automatically without having to repeat all the code for every index. I currently run it fro an autoit exe that writes the new index to the bat and repeats the script.

    Code:
    @echo off
    set mount=%~dp0MOUNT
    md %mount%
    set "details=%TEMP%\detail.log"
    set "indexlog=%TEMP%\index.log"
    set imagex=%TEMP%\imagex.exe
    set index=1
    set "WimSource=%~dp0sources\install.wim"
    
    :START
    Dism /unmount-wim /mountdir:%mount% /discard
    Dism /get-wiminfo /wimfile:%WimSource% > %indexlog%
    Dism /get-wiminfo /wimfile:%WimSource% /index:%index% > %details%
    setlocal EnableDelayedExpansion
    set "cmd=findstr /R /N "^^" %indexlog% | find /C "Index""
    for /f %%a in ('!cmd!') do set indexs=%%a
    
    if exist %details% (
      FOR /F "tokens=* skip=2 usebackq" %%a IN (`FIND "Architecture" %details%`) DO (
      set str=%%a
      for /f "tokens=2 delims=: " %%b in ('echo !str!') do (
      set arch=%%b
      )) 
    )
    
    if exist %details% (
      FOR /F "tokens=* skip=2 usebackq" %%a IN (`FIND "Edition" %details%`) DO (
      set str=%%a
      for /f "tokens=2 delims=: " %%c in ('echo !str!') do (
      set Edition=%%c
      )) 
    )
    
    if exist %details% (
      FOR /F "tokens=* skip=2 usebackq" %%a IN (`FIND "Version" %details%`) DO (
      set str=%%a
      for /f "tokens=2 delims=: " %%d in ('echo !str!') do (
      set Version=%%d
      )) 
    )
    
    echo %VERSION% | find "6.2" > nul
    if %ERRORLEVEL% == 0 goto :WIN8
    
    echo %VERSION% | find "6.1" > nul
    if %ERRORLEVEL% == 0 goto :WIN7
    
    
    :Win7
    set OS=7
    goto :UPDATE
    :Win8
    set OS=8
    goto :UPDATE
    
    
    :UPDATE
    set Description=Windows %OS% %Edition% %arch% (%Date%)
    rem cls
    set "Drivers=c:\WIM\%OS%\Drivers"
    set "Updates=c:\WIM\%OS%\Updates"
    Dism /Get-WimInfo /WimFile:%WimSource%
    echo %indexs% Install.wim indexes found.
    echo The install.wim index %index% is Windows %OS% %Edition% %arch% %Version%
    echo The index will be renamed to %Description%
    echo The install.wim is %WimSource%
    echo Drivers are in %drivers%\%arch%
    echo Updates are in %Updates%\%arch%
    echo. 
    pause
    Dism /Mount-Wim /WimFile:%WimSource% /index:%index% /MountDir:%mount%
    rem Dism /image:%mount% /Enable-Feature /FeatureName:NetFx3 /ALL
    rem Dism /image:%mount% /enable-feature /featurename:NetFX3 /Source:D:\sources\sxs /LimitAcces
    Dism /image:%mount% /Add-Driver /driver:%drivers%\%arch% /recurse /forceunsigned
    Dism /image:%mount% /Add-Package /PackagePath:%Updates%\%arch%
    Dism /image:%mount% /Add-Package /PackagePath:%Updates%\%arch%\EXTRAS
    Dism /Unmount-Wim /MountDir:%mount% /commit
    
     
  10. M&J

    M&J MDL Junior Member

    Nov 30, 2012
    79
    17
    0
    #30 M&J, Dec 11, 2012
    Last edited by a moderator: Apr 20, 2017
    I did this in 32bit version of windows 8 over and over again and it worked:hug2: but not with the 64bit version of windows 8:confused:
    can you help?
    thanks.
    EDIT: works now thanks for all..
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. M&J

    M&J MDL Junior Member

    Nov 30, 2012
    79
    17
    0
    #31 M&J, Dec 11, 2012
    Last edited by a moderator: Apr 20, 2017
    this worked with 32bit version only not 64bit:confused:
    EDIT: works now thanks for all..
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. herry2009

    herry2009 MDL Member

    Jul 22, 2011
    141
    58
    10
    #32 herry2009, Dec 12, 2012
    Last edited by a moderator: Apr 20, 2017
    Muito bom eu vou testar.... um momento...
    Very good .... I'll test a moment.
     
  13. mictlan

    mictlan MDL Member

    Nov 9, 2009
    231
    116
    10
    Command is:
    dism /Image:X:\win8_temp /Enable-Feature /FeatureName:NetFx3 /Source:X:\sources\sxs

    Adjust drive letters 'X:\' and directories 'win8_temp' accordingly.
     
  14. ace2

    ace2 Guest

    #34 ace2, Jan 19, 2013
    Last edited by a moderator: Jan 19, 2013
    cmds:

    Dism /mount-wim /wimfile:X:\sources\install.wim /index:1 /mountdir:C:\mount

    Dism.exe /Image:C:\mount /Enable-Feature /FeatureName:NetFx3 /All /Source:X:\sources\sxs

    Dism /unmount-wim /mountdir:C:\mount /commit


    Adjust drive letters X: accordingly

    Thanks @mictlan.;)
     
  15. Shenj

    Shenj MDL Expert

    Aug 12, 2010
    1,556
    656
    60

    Seriously? Scroll a bit guys.

    Welcome to 2 Months ago. :wallbash:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. ShyFx

    ShyFx MDL Novice

    Jan 11, 2013
    23
    8
    0
    Does not work, get error message :mad: Maybe someone can make a simple automatic script for this? And the description of the folder placement.
     
  17. NICK@NUMBER11

    NICK@NUMBER11 MDL Expert

    Mar 23, 2010
    1,503
    720
    60
    #37 NICK@NUMBER11, Jan 20, 2013
    Last edited by a moderator: Apr 20, 2017
    Copy this code into notepad and save as Netfx3.cmd, you will need to replace the X with the drive letter of your dvd drive that has the windows 8 installtion disc in it...


    Code:
    CD C:\Program Files\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools
    DISM /Mount-Wim /WimFile:C:\WMC\install.wim /index:1 /MountDir:C:\WMC\mount
    Dism /image:C:\wmc\mount /enable-Feature /Featurename:NetFx3 /all /Source:K:\sources\sxs
    Dism /unmount-WIM /MountDir:C:\WMC\mount /Commit
    
    
    pause
    
    Create a folder "c:\WMC" - copy the Netfx3.cmd file into it and then copy install.wim into the same folder.
    Create another folder called "mount" within the c:\WMC folder. You should have this

    c:\WMC
    Install.wim
    NetFx3.cmd
    Mount

    Next run your Netfx.cmd (ran as administrator) and it will do it for you...

     
  18. ShyFx

    ShyFx MDL Novice

    Jan 11, 2013
    23
    8
    0
    #38 ShyFx, Jan 21, 2013
    Last edited: Jan 21, 2013
    Thanks:) it worked. Is much easier with such auto complete script with explanation of folder placement like this. Any such automatic script is gold worthy and should have been collected in a place where it is easy to understand for those who are not good with typing command in cmd, like me:druff:
     
  19. leezaal

    leezaal MDL Novice

    Sep 17, 2008
    5
    1
    0
    Thank you so much Moderate for your info.
    I installed dism, sdk adk etc and ran the code you posted and i now have win8 x86 pro and win8x64 pro both with dotnetfx35 pre installed when i do a fresh install.
    works perfectly, much appreciated, i just hated the "windows must download files etc" everytime i installed software lol
     
  20. rajnshubham

    rajnshubham MDL Novice

    Mar 12, 2013
    1
    0
    0
    thnx "NICK" man it wrkd 4 me u r f**king awsum :worthy::worthy: