18

Our company was testing our product (compiled for .NET Framework 3.5) on Windows 8. We have discovered that there is no .NET Framework 3.5 on Windows 8 and there are two possibilities to resolve this issue:

  1. online installation

  2. install from Windows 8 installation DVD or ISO

But, we need to have redistributable offline installer for everyone without internet and without Windows installation DVD.

Is there a way how to resolve this issue?

Thanks.

UPDATE:

This should apply to Windows 10 as well.

Tomas Kubes
  • 23,880
  • 18
  • 111
  • 148

5 Answers5

8

Try this command:

Dism.exe /online /enable-feature /featurename:NetFX3 /Source:I:\Sources\sxs /LimitAccess

I: partition of your Windows DVD.

Elmo
  • 6,409
  • 16
  • 72
  • 140
Hammond22
  • 341
  • 2
  • 6
4

Looks like you need the package from the installation media if you're you're offline (located at D:\sources\sxs) You could copy this to each machine that you require .NET 3.5 on (so technically you only need the installation media once to get the package) and get each machine to run the command:

Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:c:\dotnet35 /LimitAccess

There's a guide on MSDN.

David Spence
  • 7,999
  • 3
  • 39
  • 63
  • 4
    I have discussed this solutions with Microsoft (using our MSDN subscription) and the man from Microsoft told me, that it is illegal, because nobody is allowed to distribute part of anything what is under copyright of Microsoft without agreement of Microsoft. But he also told me that if I do so (make the package), they will probably not take any action against the distributing subject. Anyway I don't like this solution. How many types of packages do I need? X86, x64? Do I need extra package for every localized windows? Probably not, but I have no assurance. – Tomas Kubes Dec 30 '12 at 22:24
  • I guess that in a closed environment, where you don't have internet access and you need to develop/test your application, this would be a valid option. – ALOToverflow Mar 08 '13 at 14:13
  • 1
    Unfortunately, and in complete contrast to the policy for redistributing .NET on Windows versions prior to 8, MS now say "The sources\SxS folder must not be used as a redistribution mechanism since this is not a supported mechanism" http://msdn.microsoft.com/en-us/library/windows/desktop/hh848079%28v=vs.85%29.aspx – Martin Nov 29 '13 at 15:18
3

After several month without real solution for this problem, I suppose that the best solution is to upgrade the application to .NET framework 4.0, which is supported by Windows 8, Windows 10 and Windows 2012 Server by default and it is still available as offline installation for Windows XP.

Tomas Kubes
  • 23,880
  • 18
  • 111
  • 148
2

You don't have to copy everything to C:\dotnet35. Usually all the files are already copied to the folder C:\Windows\WinSxS. Then the command becomes (assuming Windows was installed to C:): "Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:C:\Windows\WinSxS /LimitAccess" If not you can also point the command to the DVD directly. Then the command becomes (assuming DVD is mounted to D:): "Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess".

Ante
  • 21
  • 1
0

Microsoft .NET framework 3.5 can be installed on windows 10 without having installation media. The file you need is called microsoft-windows-netfx3-ondemand-package.cab. Just google it and you will get the download links. After downloading it, copy that file to C:\dotnet35 and run the following command.

Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:c:\dotnet35 /LimitAccess

Tested and worked in Windows 10 without any issue.

Chathura Buddhika
  • 2,067
  • 1
  • 21
  • 35