脱机安装 Windows ADKInstall the Windows ADK offline

若要在不能访问 Internet 的电脑上安装 Windows ADK,请首先在能够访问 Internet 的电脑上下载安装程序文件。To install the Windows ADK on a PC that does not have Internet access, first download the installer files on a PC that has internet access. 接下来,将安装程序文件复制到脱机计算机可访问的位置。Next, copy the installer files to a location that is accessible to the offline computer. 然后,使用 GUI 或命令行运行 ADKSetup.exe。Then run ADKSetup.exe using either the GUI or the command line.

使用 GUIUsing the GUI

  1. 在能够访问 Internet 的电脑上,查看下载和安装 Windows ADKOn a PC that has Internet access, see Download and install the Windows ADK.
  2. 单击链接之一来下载你需要的 ADK 版本,并将 adksetup.exe 保存到你的计算机上的某个位置。Click one of the links to download the ADK version you desire, and Save adksetup.exe to a location on your computer.
  3. 运行 ADKSetup.exe。Run ADKSetup.exe. 几秒钟之后会显示“指定位置” 屏幕。After a few seconds, the Specify Location screen appears.

    重要

    若想使此步骤成功,你需要在具有 Internet 连接且安装 Windows ADK 副本的计算机上运行 ADKSetup.exe。The success of this step requires that you run ADKSetup.exe on a computer with an Internet connection and without a copy of Windows ADK installed. 如果已安装了 Windows ADK 并且不希望将其卸载,请考虑改用下面的“使用命令行”部分中的说明。If you have Windows ADK installed and do not wish to uninstall it, consider following the instructions in the "Using the command line" section below instead.

  4. 在“指定位置” 屏幕中,选择第二个选项,即:“下载 Windows 评估和部署工具包以在单独的计算机上安装”。In the Specify Location screen, choose the second option that reads: "Download the Windows Assessment and Deployment Toolkit for installation on a separate computer". (确切的措辞可能有所不同,具体取决于 ADK 版本。)(The exact wording might differ, depending on the version of ADK.)
  5. 按照屏幕上的说明完成 Windows ADK 下载。Follow the on-screen instruction to finish downloading Windows ADK.
  6. 将下载的文件复制到脱机计算机可以访问的某个位置。Copy the downloaded files to a location that the offline computer can access. 例如,将文件复制到可移动媒体或目标计算机可以访问的文件服务器。For example, copy the files to removable media or to a file server that the target computer can access.
  7. 在脱机计算机上,将目录更改到复制的文件所在的位置。On the offline computer, change directory to the location of the copied files.
  8. 运行 ADKSetup.exe,然后选择要安装的 Windows ADK 功能。Run ADKSetup.exe, and then select the Windows ADK features that you want to install.

使用命令行Using the command line

如果需要以无提示方式安装 Windows ADK,可以使用命令行进行安装。If you have a scenario where you need to silently install the Windows ADK, you can install using the command line.

  1. 在能够访问 Internet 的电脑上,查看下载和安装 Windows ADKOn a PC that has Internet access, see Download and install the Windows ADK.

  2. 单击链接之一来下载你需要的 ADK 版本,并将 adksetup.exe 保存到你的计算机上的某个位置。Click one of the links to download the ADK version you desire, and Save adksetup.exe to a location on your computer.

  3. 以管理员身份打开命令提示符窗口。Open a Command Prompt window as administrator.

  4. 更改到存储着 Adksetup.exe 文件的目录:Change to the directory that stores the Adksetup.exe file:

    cd %userprofile%\downloads
    
  5. 运行 adksetup.exe。Run adksetup.exe. 使用 /quiet 以无提示方式运行安装程序。Use /quiet to run the installer silently. 使用 /layout 指定要将脱机安装文件复制到何处。Use /layout to specify where the offline install files will be copied to.

    adksetup /quiet /layout c:\temp\ADKoffline
    
  6. 将下载的文件复制到脱机计算机可以访问的某个位置。Copy the downloaded files to a location that the offline computer can access. 例如,将文件复制到可移动媒体或脱机计算机可以访问的文件服务器。For example, copy the files to removable media or to a file server that the offline computer can access.

  7. 在脱机计算机上,以管理员身份打开命令提示符窗口。On the offline computer, open a Command Prompt window as an administrator.

  8. 更改到包含 adksetup.exe 的目录。Change to the directory that contains adksetup.exe.

  9. 运行 adksetup.exe。Run adksetup.exe. 使用 /quiet 指定无提示安装,使用 /installpath 指定要将 ADK 安装到何处,使用 /features 来指定功能。Use /quiet for a silent installation, /installpath to specify where to install the ADK, and /features to specify features. 例如,以无提示方式将部署工具安装到 c:\ADK:For example, install Deployment Tools to c:\ADK silently:

    adksetup.exe /quiet /installpath c:\ADK /features OptionId.DeploymentTools
    

ADKSetup 命令行语法ADKSetup Command-Line Syntax.