Wednesday, September 5, 2012

How to install .NET on Windows 8 without internet connection

Many of you now installed Windows 8 as your main OS. So you may need .net installed on your system very often. But Windows 8 won't let you install .NET with regular installer which you used with Windows 7/Vista/XP. Users are now required to download it via windows features. So if you need .NET installed but don't have an active active internet connection, here is the solution for you :).

       1. Grab your windows 8 dvd. If you have an iso file you can just right click on that and select mount.

     
        2. Now press Win+X to bring up the new winx menu. Then select Command Prompt (Admin)

      3. In cmd window type xcopy j:\sources\sxs\*.* c:\dotnet35 /s  Where "j" is your windows 8 installation disk's drive letter and "c" is your windows installation directory.
   
     4. After finishing copying again type this into cmd (admin) window  Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:c:\dotnet35 /LimitAccess wait and wait till it finishes installation.


That was easy! But it if it was in the installation image then why we need to download it again? Microsoft knows better :)