.Net 3.5 SP1 的离线安装程序不起作用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14192244/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 16:48:53  来源:igfitidea点击:

Offline installer for .Net 3.5 SP1 not working

.net.net-3.5windows-server-2012

提问by Hyman

I downloaded a big file of .Net 3.5 SP1.

我下载了一个大文件 .Net 3.5 SP1

Now when I try to install it on Windows Server 2012, I get the following screenshot:

现在,当我尝试在 Windows Server 2012 上安装它时,我得到以下屏幕截图:

enter image description here

在此处输入图片说明

Now this is a loop. When I try to install from Server Manager, I get installation cannot be done. It needs the installation disk.

现在这是一个循环。当我尝试从服务器管理器安装时,无法完成安装。它需要安装盘。

Does that mean I can't install at all without the installation disk in presence?

这是否意味着在没有安装盘的情况下我根本无法安装?

回答by Daro

Your WSUS server is probobly getting in the way, or you just can't reach the Microsoft update site.

您的 WSUS 服务器可能有问题,或者您无法访问 Microsoft 更新站点。

Follow these directions."Specify settings for optional component installation and component repair" worked for me.

遵循这些指示。“为可选组件安装和组件修复指定设置”对我有用。

回答by Cybertron

This is alternate solution when you don't have windows server installation disk

当您没有 Windows Server 安装盘时,这是替代解决方案

  1. 1.On your local computer(not server), go to windows install directory(C:\Windows) and then find "WinSxS" directory.
  2. Copy this folder to server
  3. Open add roles and features wizard, go to features tab and check .Net Framework SP1.
  4. Then bellow of this window click on "Specify Alternate Source Path" and in new window specify folder path that you coped early on the server.
  1. 1.在您的本地计算机(不是服务器)上,转到windows安装目录(C:\Windows),然后找到“WinSxS”目录。
  2. 将此文件夹复制到服务器
  3. 打开添加角色和功能向导,转到功能选项卡并检查 .Net Framework SP1。
  4. 然后在此窗口下方单击“指定备用源路径”,并在新窗口中指定您在服务器上早期处理的文件夹路径。

That's it!

就是这样!

回答by Mayeed

Though it is too late, I want to share my experience. Hope this will help some -

虽然为时已晚,但我想分享我的经验。希望这会帮助一些 -

My Windows Update was OK and I could not install .Net Framework 3.5 from Add roles and features wizard. The following two commands actually made my day -

我的 Windows 更新正常,但无法从添加角色和功能向导安装 .Net Framework 3.5。以下两个命令实际上让我开心了 -

Dism.exe /online /enable-feature /featurename:NetFX3ServiceFeatures /Source:%DriveLetter%:\sources\sxs

Dism.exe /online /enable-feature /featurename:NetFX3 /Source:%DriveLetter%:\sources\sxs

回答by Dilshod

You could easily do this. We made it for ourselves if we need it in future.

你可以很容易地做到这一点。如果我们将来需要它,我们为自己制作。

STEPS:

脚步:

  • Create a bat file

  • Copy this text into the bat file and save it:

    @echo To install .NET 3.5 SP1 you need to find the Windows 8.1 DVD Installer or the ISO file.
    @echo Please follow the steps below:
    @echo 1. Insert the DVD Installer or mount the ISO file."
    @echo 2. Open MyComputer and find out the drive letter of the DVD ROM that you just inserted DVD Disk or mounted ISO file."
    @echo off
    set /p DriveLetter="Please enter the letter of your DVD ROM: "
    
    Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:%DriveLetter%:\sources\sxs /LimitAccess
    
    @echo off
    set /p DriveLetter="Press Enter to close"
    
  • Run the bat file as Administrator by right click and click on Run As Administrator and rest should be self explanatory.

  • 创建一个bat文件

  • 将此文本复制到bat文件中并保存:

    @echo To install .NET 3.5 SP1 you need to find the Windows 8.1 DVD Installer or the ISO file.
    @echo Please follow the steps below:
    @echo 1. Insert the DVD Installer or mount the ISO file."
    @echo 2. Open MyComputer and find out the drive letter of the DVD ROM that you just inserted DVD Disk or mounted ISO file."
    @echo off
    set /p DriveLetter="Please enter the letter of your DVD ROM: "
    
    Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:%DriveLetter%:\sources\sxs /LimitAccess
    
    @echo off
    set /p DriveLetter="Press Enter to close"
    
  • 通过右键单击以管理员身份运行 bat 文件,然后单击以管理员身份运行,其余的应该是不言自明的。