Vik*_*ngh 2 windows window .net-3.5 .net-framework windows-server-2012
我正在 Windows Server 2012 上安装 .NET 3.5 框架。我从 Microsoft 网站下载了 dotNetFx35setup.exe 并将其复制到 E:\Sources\SxS 位置。在 google 上的每个链接上,他们都在讲述这个 SxS 文件夹,所以是这样的。但我仍然无法从 GUI 安装 .NET 框架。我在功能中选择了 .NET 并指定了 E:\Sources\SxS 的路径。我做错了什么?
我的电脑没有连接到互联网,所以我需要一些离线安装方法。
您需要将 2012/2012R2 ISO 安装或解压到一个文件夹中,因为 .net 3.5 的安装介质实际上包含在 DVD/ISO 本身中!
接下来,您可以通过启动命令提示符(以管理员身份)并运行以下命令来安装:
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\sources\sxs
Run Code Online (Sandbox Code Playgroud)
(将 d:\sources\sxs 替换为 C:\users\you\desktop... 或者您将其解压到的任何位置!)
上面使用的命令开关执行以下操作~:
/Online targets the operating system you're running (instead of an offline Windows image).
/Enable-Feature /FeatureName:NetFx3 specifies that you want to enable the .NET Framework 3.5.
/All enables all parent features of the .NET Framework 3.5.
/LimitAccess prevents DISM from contacting Windows Update.
/Source specifies the location of the files needed to restore the feature (in this example, the D:\sources\sxs directory).
Run Code Online (Sandbox Code Playgroud)
这在 99.9% 的情况下都有效,如果失败 - 通常表示 BITS/Windows 更新服务有问题 - 实际上这两者都由 DISM(部署映像服务和管理)工具使用。要解决此问题,请查看此 Microsoft Fixit 文章 。Windows 8 手册说明也适用于 2012/2012R2!
| 归档时间: |
|
| 查看次数: |
82327 次 |
| 最近记录: |