我从Microsoft门户下载了WDK Webinstaller。使用 / layout / features + 命令行选项,我为WDK创建了一个离线安装程序。
使用此脱机安装程序,我使用以下命令执行静默安装:
WDK8.1Install.exe / quiet / NoRestart / log" C:\ Users \ kiranh \ AppData \ Local \ ChocoCache \ Logs \ WDK8.1 \ 8.100.26846 \ Install.log"
使用离线安装程序,我不希望从互联网上下载任何内容。但是,我看到有很多位从互联网上下载。
有人可以告诉我为什么要从互联网上下载比特的原因吗?
我还观察到,有时候,互联网上没有任何内容。但是,这似乎只有在系统上至少安装一次WDK时才会出现。
以下是日志的摘录:
*Resolving download root for: http://go.microsoft.com/fwlink/?LinkID=392876
[0CEC:0F54][2018-02-16T01:46:32]: HTTP status code: 302
[0CEC:0F54][2018-02-16T01:46:32]: Redirected URL: http://download.microsoft.com/download/0/8/C/08C7497F-8551-4054-97DE-60C0E510D97A/wdk/
[0CEC:0F54][2018-02-16T01:46:32]: Resolved redirected download root: http://download.microsoft.com/download/0/8/C/08C7497F-8551-4054-97DE-60C0E510D97A/wdk/
[0CEC:0F54][2018-02-16T01:46:32]: package_WindowsDebuggingVSIntegrationDev12x86_en_us to http://download.microsoft.com/download/0/8/C/08C7497F-8551-4054-97DE-60C0E510D97A/wdk/Installers/Windows Debugging VS Integration Dev12-x86_en-us.msi
[0CEC:0F54][2018-02-16T01:46:32]: Acquiring package: package_WindowsDebuggingVSIntegrationDev12x86_en_us, payload: package_WindowsDebuggingVSIntegrationDev12x86_en_us, download from: http://download.microsoft.com/download/0/8/C/08C7497F-8551-4054-97DE-60C0E510D97A/wdk/Installers/Windows Debugging VS Integration Dev12-x86_en-us.msi
[0DE0:02EC][2018-02-16T01:46:32]: Verified acquired payload: package_WindowsDebuggingVSIntegrationDev12x86_en_us at path: C:\ProgramData\Package Cache\.unverified\package_WindowsDebuggingVSIntegrationDev12x86_en_us, moving to: C:\ProgramData\Package Cache\{96C0E1F9-960D-B927-8A62-90B39E59D0CA}v8.100.26846\Installers\Windows Debugging VS Integration Dev12-x86_en-us.msi.
[0CEC:0F54][2018-02-16T01:46:32]: Prompt for source of package: package_WindowsDebuggingVSIntegrationDev12x86_en_us, payload: pay867C14C04262152841173685F0E711B0, path: C:\Users\kiranh\AppData\Local\ChocoCache\WDK8.1\8.100.26846\Installers\1c33d17316f25da4cbe42ca09b018509.cab
[0CEC:0F54][2018-02-16T01:46:32]: pay867C14C04262152841173685F0E711B0
[0CEC:0F54][2018-02-16T01:46:32]: pay867C14C04262152841173685F0E711B0 to http://download.microsoft.com/download/0/8/C/08C7497F-8551-4054-97DE-60C0E510D97A/wdk/Installers/1c33d17316f25da4cbe42ca09b018509.cab
[0CEC:0F54][2018-02-16T01:46:32]: Acquiring package: package_WindowsDebuggingVSIntegrationDev12x86_en_us, payload: pay867C14C04262152841173685F0E711B0, download from: http://download.microsoft.com/download/0/8/C/08C7497F-8551-4054-97DE-60C0E510D97A/wdk/Installers/1c33d17316f25da4cbe42ca09b018509.cab
[0DE0:02EC][2018-02-16T01:46:33]: Verified acquired payload: pay867C14C04262152841173685F0E711B0 at path: C:\ProgramData\Package Cache\.unverified\pay867C14C04262152841173685F0E711B0, moving to: C:\ProgramData\Package Cache\{96C0E1F9-960D-B927-8A62-90B39E59D0CA}v8.100.26846\Installers\1c33d17316f25da4cbe42ca09b018509.cab.
[0CEC:0F54][2018-02-16T01:46:33]: Prompt for source of package: package_WindowsDebuggingVSIntegrationDev12x86_en_us, payload: payF179DC1C4866F63F7BB9057BF1AD363D, path: C:\Users\kiranh\AppData\Local\ChocoCache\WDK8.1\8.100.26846\Installers\b6923fe117b94abbb1703c09cf619759.cab
[0CEC:0F54][2018-02-16T01:46:33]: payF179DC1C4866F63F7BB9057BF1AD363D
[0CEC:0F54][2018-02-16T01:46:33]: payF179DC1C4866F63F7BB9057BF1AD363D to http://download.microsoft.com/download/0/8/C/08C7497F-8551-4054-97DE-60C0E510D97A/wdk/Installers/b6923fe117b94abbb1703c09cf619759.cab
[0CEC:0F54][2018-02-16T01:46:33]: Acquiring package: package_WindowsDebuggingVSIntegrationDev12x86_en_us, payload: payF179DC1C4866F63F7BB9057BF1AD363D, download from: http://download.microsoft.com/download/0/8/C/08C7497F-8551-4054-97DE-60C0E510D97A/wdk/Installers/b6923fe117b94abbb1703c09cf619759.cab
[0DE0:02EC][2018-02-16T01:46:33]: Verified acquired payload: payF179DC1C4866F63F7BB9057BF1AD363D at path: C:\ProgramData\Package Cache\.unverified\payF179DC1C4866F63F7BB9057BF1AD363D, moving to: C:\ProgramData\Package Cache\{96C0E1F9-960D-B927-8A62-90B39E59D0CA}v8.100.26846\Installers\b6923fe117b94abbb1703c09cf619759.cab.
[0CEC:0F54][2018-02-16T01:46:33]: Prompt for source of package: package_WindowsDebuggingWDKIntegrationx86_en_us, payload: package_WindowsDebuggingWDKIntegrationx86_en_us, path: C:\Users\kiranh\AppData\Local\ChocoCache\WDK8.1\8.100.26846\Installers\Windows Debugging WDK Integration-x86_en-us.msi
[0CEC:0F54][2018-02-16T01:46:33]: package_WindowsDebuggingWDKIntegrationx86_en_us
[0CEC:0F54][2018-02-16T01:46:33]: package_WindowsDebuggingWDKIntegrationx86_en_us to http://download.microsoft.com/download/0/8/C/08C7497F-8551-4054-97DE-60C0E510D97A/wdk/Installers/Windows Debugging WDK Integration-x86_en-us.msi
[0CEC:0F54][2018-02-16T01:46:33]: Acquiring package: package_WindowsDebuggingWDKIntegrationx86_en_us, payload: package_WindowsDebuggingWDKIntegrationx86_en_us, download from: http://download.microsoft.com/download/0/8/C/08C7497F-8551-4054-97DE-60C0E510D97A/wdk/Installers/Windows Debugging WDK Integration-x86_en-us.msi*
答案 0 :(得分:0)
我要说的是,我自己在没有活动互联网连接的环境中使用了离线安装程序,安装程序工作得很好。这必须意味着离线安装程序不能依赖于正常的互联网连接。
您最好的选择是直接向微软询问。
答案 1 :(得分:0)
经过一年的各种尝试,我相信我终于找到了 WDK/SDK 安装程序默认使用 Web 的原因。在我们的例子中,WDK/SDK 安装程序是通过下载一个 iso 文件,挂载这个 iso 文件,然后从这个挂载的 iso 文件调用安装程序来安装的。这种行为的关键原因是我们使用的是 Chocolatey cmdlet:Install-ChocolateyPackage
安装 WDK/SDK 包。在我们的例子中,在安装 WDK/SDK Choco 包时,Chococache 位置设置为 %appdata%\local\ChocoCache。
使用cmdlet Install-ChocolateyPackage 时,WDK/SDK 安装程序会将离线安装程序的源设置为%appdata%\local\ChocoCache
此外,WDK/SDK 安装程序使用 Wix 包属性记录离线安装程序位置:WixBundleOriginalSourceFolder。
这被错误地设置为 %appdata%\local\ChocoCache
如您所见,这意味着 WDK/SDK 安装程序可执行文件将永远找不到离线安装包。因此,它们默认使用网络。
修复方法是使用替代 cmdlet:Install-ChocolateyInstallPackage