none
[SOLVED] computer provisioning errors in VS 2015 WDK 10 ( KMDF ) RRS feed

  • Question

  • I am running Visual Studio 2015 on windows 10 Pro. I am trying to provision a computer for driver deployment and testing but Visual Studio is throwing errors.

    So this is what I did:

    Windows 10 Pro 64 bit is running on HOST computer.

    Windows 7 and 8.1 32 bit are running on TARGET computer with Firewall disabled for both Private and Public networks.

    I copied the WDK Test Target Setup MSI x86 from location "C:\Program Files (x86)\Windows Kits\10\Remote\x86\" of Host computer TO Target computer's Desktop

    I executed the copied file in Target computer which resulted in DriverTest folder in Disk C:.

    Now, in my Host Computer I launched Visual Studio 2015 and

    Created KMDF project > set configuration to Debug and x86 platform > right-clicked on solution > Properties > Driver Install > Deployment > Target Device Name > Add a device > COMPUTER HOST NAME > Next > Install

    Then I see a link to the log file on my computer:

     Name: Install Driver Test Components
      Path: C:\Users\PC\AppData\Roaming\Microsoft\WDKTestInfrastructure\InfrastructureTaskGroups\Install Driver Test Components.xml
      Target Computer: New Computer
    Install Driver Test Components: Host Computer: DESKTOP-63UIA7P
    Install Driver Test Components: Host Architecture: x86
    Install Driver Test Components: Host 64bit Operating System: True
    Install Driver Test Components: Host Operating System Version: 10.0.14393.0
    Install Driver Test Components: Process Administrator Privilege: False
    Progress event: Current: 1, Max: 12, Message: ""
    Progress event: Current: 1, Max: 12, Message: "Copying required files"
    [07:07:59:732]: Copying required files
    [07:08:49:292]: Copying file "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\1033\vcredist_X86.exe" to the target machine failed. The file could not be found.
    Task result status updated: Fail
    [07:08:49:296]: ERROR: Task "Copying required files" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure.
    Progress event: Current: 1, Max: 12, Message: "    ERROR: Task "Copying required files" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure."
    Result completed
    Test process exit code: 0
    Progress event: Current: 2, Max: 12, Message: "Configuring WDK Remote User Account"
    [07:08:49:307]: Configuring WDK Remote User Account
    Task result status updated: Pass
    [07:08:49:353]: Task "Configuring WDK Remote User Account" completed successfully
    Progress event: Current: 2, Max: 12, Message: "    Task "Configuring WDK Remote User Account" completed successfully"
    Result completed
    Test process exit code: 0
    Progress event: Current: 3, Max: 12, Message: "Installing .NET Framework (possible reboot)"
    [07:08:49:377]: Installing .NET Framework (possible reboot)
    [07:08:49:377]: [Installing .NET Framework (possible reboot)] Command Line:
    %SystemDrive%\DriverTest\Setup\dotNetFx40_Full_x86_x64.exe /q /norestart /log %SystemDrive%\DriverTest\Logs\DotNetInstall.log
    Result file "%SystemDrive%\DriverTest\Logs\DotNetInstall*.log" could not be retrieved from the target machine. Error: An error occurred on the target machine while retrieving a file.
    Error code: 3
    Error message: Unable to open file 'C:\DriverTest\Logs\DotNetInstall*.log'.
    Result file "%SystemDrive%\DriverTest\Logs\DotNetInstall*.html" could not be retrieved from the target machine. Error: An error occurred on the target machine while retrieving a file.
    Error code: 3
    Error message: Unable to open file 'C:\DriverTest\Logs\DotNetInstall*.html'.
    Task result status updated: Pass
    Task result status updated: Pass
    [07:09:43:700]: Task "Installing .NET Framework (possible reboot)" completed successfully
    Progress event: Current: 3, Max: 12, Message: "    Task "Installing .NET Framework (possible reboot)" completed successfully"
    Result completed
    Test process exit code: 0
    Progress event: Current: 4, Max: 12, Message: "Installing VC Redist (x86)"
    [07:09:43:715]: Installing VC Redist (x86)
    [07:09:43:715]: [Installing VC Redist (x86)] Command Line:
    %SystemDrive%\DriverTest\Setup\x86\vcredist_x86.exe /q /log %SystemDrive%\DriverTest\Logs\vcredist_x86.log
    [07:09:43:778]: Task "Installing VC Redist (x86)" was aborted because an error occured on the target machine during execution.
    
    An error occurred on the target machine while executing a process.
    Error code: 3
    Error message: Unable to start process
    Progress event: Current: 4, Max: 12, Message: "    Task "Installing VC Redist (x86)" was aborted because an error occured on the target machine during execution.
    
    An error occurred on the target machine while executing a process.
    Error code: 3
    Error message: Unable to start process"
    Task result status updated: Aborted
    Result completed
    Test process exit code: 0
    Progress event: Current: 5, Max: 12, Message: "Installing test automation (x86)"
    [07:09:43:798]: Installing test automation (x86)
    [07:09:43:798]: [Installing test automation (x86)] Command Line:
    msiexec.exe /i "%SystemDrive%\DriverTest\Setup\Test Authoring and Execution Framework x86-x86_en-us.msi" /qb- KITSROOT="%ProgramFiles%\Windows Kits\10" KITTARGET=1 /l*v "%SystemDrive%\DriverTest\Logs\Test Authoring and Execution Framework x86-x86_en-us.msi_install.log"
    Result file "%SystemDrive%\DriverTest\Logs\Test Authoring and Execution Framework x86-x86_en-us.msi_install.log" could not be retrieved from the target machine. Error: An error occurred on the target machine while retrieving a file.
    Error code: 3
    Error message: Unable to open file 'C:\DriverTest\Logs\Test Authoring and Execution Framework x86-x86_en-us.msi_install.log'.
    Task result status updated: Fail
    Task result status updated: Fail
    [07:09:43:891]: ERROR: Task "Installing test automation (x86)" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure.
    Progress event: Current: 5, Max: 12, Message: "    ERROR: Task "Installing test automation (x86)" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure."
    Result completed
    Test process exit code: 1622
    Progress event: Current: 6, Max: 12, Message: "Installing debuggers (x86)"
    [07:09:43:906]: Installing debuggers (x86)
    [07:09:43:906]: [Installing debuggers (x86)] Command Line:
    msiexec.exe /i "%SystemDrive%\DriverTest\Setup\x86 Debuggers And Tools-x86_en-us.msi" /qb- /l*v "%SystemDrive%\DriverTest\Logs\x86 Debuggers And Tools-x86_en-us.msi_install.log"
    Result file "%SystemDrive%\DriverTest\Logs\x86 Debuggers And Tools-x86_en-us.msi_install.log" could not be retrieved from the target machine. Error: An error occurred on the target machine while retrieving a file.
    Error code: 3
    Error message: Unable to open file 'C:\DriverTest\Logs\x86 Debuggers And Tools-x86_en-us.msi_install.log'.
    Task result status updated: Fail
    Task result status updated: Fail
    [07:09:44:001]: ERROR: Task "Installing debuggers (x86)" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure.
    Progress event: Current: 6, Max: 12, Message: "    ERROR: Task "Installing debuggers (x86)" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure."
    Result completed
    Test process exit code: 1622
    Progress event: Current: 7, Max: 12, Message: "Installing driver test framework"
    [07:09:44:048]: Installing driver test framework
    [07:09:44:048]: [Installing driver test framework] Command Line:
    msiexec.exe /i "%SystemDrive%\DriverTest\Setup\Windows Driver Testing Framework (WDTF) Runtime Libraries-x86_en-us.msi" /qb- KITTARGET=1 /l*v "%SystemDrive%\DriverTest\Logs\Windows Driver Testing Framework (WDTF) Runtime Libraries-x86_en-us.msi_install.log"
    Result file "%SystemDrive%\DriverTest\Logs\Windows Driver Testing Framework (WDTF) Runtime Libraries-x86_en-us.msi_install.log" could not be retrieved from the target machine. Error: An error occurred on the target machine while retrieving a file.
    Error code: 3
    Error message: Unable to open file 'C:\DriverTest\Logs\Windows Driver Testing Framework (WDTF) Runtime Libraries-x86_en-us.msi_install.log'.
    Result file "%SystemDrive%\WDTFInstallText.log" could not be retrieved from the target machine. Error: An error occurred on the target machine while retrieving a file.
    Error code: 2
    Error message: Unable to open file 'C:\WDTFInstallText.log'.
    Task result status updated: Fail
    Task result status updated: Fail
    [07:09:44:170]: ERROR: Task "Installing driver test framework" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure.
    Progress event: Current: 7, Max: 12, Message: "    ERROR: Task "Installing driver test framework" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure."
    Result completed
    Test process exit code: 1622
    Progress event: Current: 8, Max: 12, Message: "Registering logging components"
    [07:09:44:183]: Registering logging components
    [07:09:44:183]: [Registering logging components] Command Line:
    regsvr32.exe /s %SystemDrive%\DriverTest\WTTLogcm.dll
    Task result status updated: Pass
    Task result status updated: Pass
    [07:09:44:301]: Task "Registering logging components" completed successfully
    Progress event: Current: 8, Max: 12, Message: "    Task "Registering logging components" completed successfully"
    Result completed
    Test process exit code: 0
    Progress event: Current: 9, Max: 12, Message: "Configuring TAEF test service to start automatically"
    [07:09:44:314]: Configuring TAEF test service to start automatically
    [07:09:44:314]: [Configuring TAEF test service to start automatically] Command Line:
    sc config Te.Service start= auto
    Task result status updated: Fail
    Task result status updated: Fail
    [07:09:44:439]: ERROR: Task "Configuring TAEF test service to start automatically" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure.
    Progress event: Current: 9, Max: 12, Message: "    ERROR: Task "Configuring TAEF test service to start automatically" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure."
    Result completed
    Test process exit code: 1060
    Progress event: Current: 10, Max: 12, Message: "Configuring kernel debugger settings (possible reboot)"
    [07:09:44:472]: Configuring kernel debugger settings (possible reboot)
    [07:09:44:472]: Removing any existing files from test execution folder.
    [07:09:44:484]: Copying required files for "Configuring kernel debugger settings (possible reboot)".
    [07:09:44:785]: An error occured while deploying files to the target machine for test "Configuring kernel debugger settings (possible reboot)": Could not find a part of the path 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\Debug_NonRedist\X86\Microsoft.VC140.DebugCRT'..
    Task result status updated: Fail
    [07:09:44:787]: ERROR: Task "Configuring kernel debugger settings (possible reboot)" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure.
    Progress event: Current: 10, Max: 12, Message: "    ERROR: Task "Configuring kernel debugger settings (possible reboot)" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure."
    Result completed
    Test process exit code: 0
    Progress event: Current: 11, Max: 12, Message: "Configuring computer settings (possible reboot)"
    [07:09:44:806]: Configuring computer settings (possible reboot)
    [07:09:44:806]: Removing any existing files from test execution folder.
    [07:09:44:821]: Copying required files for "Configuring computer settings (possible reboot)".
    [07:09:45:062]: An error occured while deploying files to the target machine for test "Configuring computer settings (possible reboot)": Could not find a part of the path 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\Debug_NonRedist\X86\Microsoft.VC140.DebugCRT'..
    Task result status updated: Fail
    [07:09:45:065]: ERROR: Task "Configuring computer settings (possible reboot)" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure.
    Progress event: Current: 11, Max: 12, Message: "    ERROR: Task "Configuring computer settings (possible reboot)" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure."
    Result completed
    Test process exit code: 0
    Progress event: Current: 12, Max: 12, Message: "Creating system restore point"
    [07:09:45:081]: Creating system restore point
    [07:09:45:081]: [Creating system restore point] Command Line:
    cscript.exe %SystemDrive%\DriverTest\Setup\CreateRestore.js
    Result file "%SystemDrive%\DriverTest\Logs\CreateRestorePoint.log" could not be retrieved from the target machine. Error: An error occurred on the target machine while retrieving a file.
    Error code: 3
    Error message: Unable to open file 'C:\DriverTest\Logs\CreateRestorePoint.log'.
    Task result status updated: Pass
    Task result status updated: Pass
    [07:09:45:231]: Task "Creating system restore point" completed successfully
    Progress event: Current: 12, Max: 12, Message: "    Task "Creating system restore point" completed successfully"
    Result completed
    Test process exit code: 0
    Progress event: Current: 12, Max: 12, Message: ""
    Progress event: Current: 12, Max: 12, Message: "Computer configuration log file://C:/Users/PC/AppData/Roaming/Microsoft/WDKTestInfrastructure/ProvisioningLogs/Driver%20Test%20Computer%20Configuration%2020170410070759696.log"



    Tuesday, April 11, 2017 7:36 AM

Answers

  • Since nobody answered this question, I'll answer it myself. VS 2015 installation can go absolutely wrong which microsoft needs to fix if you have VS 2017 installed. Do yourself a favor, DELETE ONLY TWO FOLDERS "Windows Kits" AND "Microsoft Visual Studio 14.0" entirely from "C:\Program Files (x86)".  Now, uninstall VS 2015 from control panel and then install a fresh VS 2015 but remember to choose "Typical installation" to avoid any possible headaches and then install SDK, after that install WDK.

    NOTE: BE VERY CAREFUL WHEN INSTALLING SDK AND WDK BECAUSE IF YOU HAVE WINDOWS 10 then MAKE SURE YOU INSTALL FOR THE RIGHT VERSION OF WINDOWS 10 (VERSION 1703 OR 1607 )

    . DOWNLOAD THEM FROM HERE ONLY ( UNTIL IF MICROSOFT COMES UP WITH SOMETHING ELSE ) : https://developer.microsoft.com/en-us/windows/hardware/windows-driver-kit

     Now, try to provision your computers and thank me later ;)


    Thursday, April 27, 2017 8:41 AM