acschell
Contributor
Contributor

USB INF failure during install

Jump to solution

Uninstalling, reinstalling, manually cleaning out files after an uninstall.  None of the methods fixes the issue.  Happened to me on Workstation 12 and 14 on win7.  Is there anything else I can do to resolve this?

0 Kudos
1 Solution

Accepted Solutions
bonnie201110141
VMware Employee
VMware Employee

From the log, the error happen when we install vmusb/netbridge/netadapter/vmci drivers.

From setupapi.dev.log,

===================================

flq: {_commit_copyfile}

flq: CopyFile: 'C:\Users\acs\AppData\Local\Temp\{5f5042b8-f0c3-00c7-ea0b-e401025fd614}\vmusb.sys'

flq: to: 'C:\windows\System32\DriverStore\Temp\{431616f7-d661-75d8-1d2d-c8796036d55a}\SET5977.tmp'

flq: MoveFile: 'C:\windows\System32\DriverStore\Temp\{431616f7-d661-75d8-1d2d-c8796036d55a}\SET5977.tmp'

flq: to: 'C:\windows\System32\DriverStore\Temp\{431616f7-d661-75d8-1d2d-c8796036d55a}\vmusb.sys'

!!! flq: MoveFile: FAILED!

!!! flq: Error 32: The process cannot access the file because it is being used by another process.

!!! flq: Windows could not copy a boot file 'C:\windows\System32\DriverStore\Temp\{431616f7-d661-75d8-1d2d-c8796036d55a}\vmusb.sys' due to the presence of an in-use file.

!!! flq: Error installing file (0x00000005)

!!! flq: Error 5: Access is denied.

! flq: SourceFile   - 'C:\Users\acs\AppData\Local\Temp\{5f5042b8-f0c3-00c7-ea0b-e401025fd614}\vmusb.sys'

flq: TempFile     - 'C:\windows\System32\DriverStore\Temp\{431616f7-d661-75d8-1d2d-c8796036d55a}\SET5977.tmp'

! flq: TargetFile   - 'C:\windows\System32\DriverStore\Temp\{431616f7-d661-75d8-1d2d-c8796036d55a}\vmusb.sys'

flq: {SPFQNOTIFY_COPYERROR}

!!! sto: Failed to copy file 'C:\Users\acs\AppData\Local\Temp\{5f5042b8-f0c3-00c7-ea0b-e401025fd614}\vmusb.sys' to 'C:\windows\System32\DriverStore\Temp\{431616f7-d661-75d8-1d2d-c8796036d55a}\vmusb.sys'. Error = 0x00000005

sto: File 'C:\Users\acs\AppData\Local\Temp\{5f5042b8-f0c3-00c7-ea0b-e401025fd614}\vmusb.sys' is not in use by any processes.

flq: {SPFQNOTIFY_COPYERROR - returned 0x00000000}

!!! flq: SPFQNOTIFY_COPYERROR: returned SPFQOPERATION_ABORT.

!!! flq: Error 2: The system cannot find the file specified.

flq: {_commit_copyfile exit(0x00000002)}

flq: {_commit_copy_subqueue exit(0x00000002)}

====================================

There have several possibilities to cause this problem. Can you try below?

1.    Check anti-virus software log if you have one, this copy operation failure maybe caused by anti-virus deny this operation.

2.    After uninstall Workstation, goto 'C:\windows\System32\DriverStore\Temp’ folder, for every subdir, which is named as one GUID, find and delete sub-folders  which has these driver files: vmusb/netbridge/netadapter/vmci

For example, if you find 'C:\windows\System32\DriverStore\Temp\{431616f7-d661-75d8-1d2d-c8796036d55a}\vmusb.sys' exist, you should delete whole subfolder {431616f7-d661-75d8-1d2d-c8796036d55a}

3.    Check the 'C:\windows\System32\DriverStore\’ security properties, make sure the ‘system’ account have full control for this folder.

4.    It may cause by NTFS ‘alternate data streams’, go to website https://docs.microsoft.com/en-us/sysinternals/downloads/streams download the tool named streams, unpack it and save it to one folder, let’s say c:\temp, then in one administrator console, run this:

C:\> cd /d C:\windows\System32\DriverStore

C:\Windows\System32\DriverStore> c:\temp\streams -s *

If you get output like this (I created test.txt:stream in c:\test for demo):

C:\test> c:\temp\streams -s *

Streams v1.56 - Enumerate alternate NTFS data streams

Copyright (C) 1999-2007 Mark Russinovich

Sysinternals - www.sysinternals.com

C:\test\test.txt:

          :stream:$DATA 8

You need cleanup them, with this command (notice this command run inside C:\Windows\System32\DriverStore):

C:\Windows\System32\DriverStore> c:\temp\Streams -s -d *

Reinstall Workstation and check the result.

View solution in original post

0 Kudos
17 Replies
bonnie201110141
VMware Employee
VMware Employee

Do you have any other VMware software installed, such as vSphere client or Horizon client?

0 Kudos
acschell
Contributor
Contributor

No other vmware products installed right now.  I did have player installed when I originally tried to install workstation so I figured that was the issue but after uninstall and removal of everything it still gives me the same error.  Failed to install USB inf and then at the end "setup failed to install the vmci virtual machine communication interface driver automatically.  This driver will have to be installed manually"

0 Kudos
bonnie201110141
VMware Employee
VMware Employee

Would you mind doing a complete cleanup as below?

1. Uninstall Workstation

2. Reboot host OS

3. Running cmd as administrator, and execute the following command:

sc stop VMAuthdService

sc delete VMAuthdService

sc stop VMUSBArbService

sc delete VMUSBArbService

sc stop hcmon

sc delete hcmon

sc stop vmx86

sc delete vmx86

sc stop vsock

sc delete vsock

sc stop vmusb

sc delete vmusb

4. Remove below files if any:

C:\Program Files (x86)\VMware\VMware Workstation

C:\Program Files\Common Files\VMware

C:\Program Files (x86)\Common Files\VMware

5. Remove below drivers if any:

C:\Windows\System32\drivers\hcmon.sys

C:\Windows\System32\drivers\vmci.sys

C:\Windows\System32\drivers\vmx86.sys

C:\Windows\System32\drivers\vmusb.sys

C:\Windows\System32\drivers\vmkbd.sys

C:\Windows\System32\drivers\vsock.sys

C:\Windows\System32\drivers\vmnet.sys

C:\Windows\System32\drivers\vmnetadapter.sys

C:\Windows\System32\drivers\vmnetbridge.sys

C:\Windows\system32\drivers\vmnetuserif.sys

6. Remove registries if any:
HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VMware, Inc.

7. Reboot host OS

8. Install Workstation again.

Let me know if it works for you.

0 Kudos
acschell
Contributor
Contributor

I performed the steps

None of the services or drivers existed. The only files with vm in that folder were

vmbus

VMBusHID

vmkbd

vms3cap

vmstorfl

Unfortunately the result is exactly the same.  USB ini failure and then at the end "setup failed to install the vmci virtual machine communication interface driver automatically.  This driver will have to be installed manually"

If I try to run a VM I get an error window with

"Could not get vmci driver version: The handle is inalid

You have an incorrect version of driver 'vmci.sys'.  Try reinstalling

0 Kudos
bonnie201110141
VMware Employee
VMware Employee

Please attach vminst*.log and vmmsi*.log under your %temp% directory (i.e. c:\users\username\appdata\local\temp).

0 Kudos
acschell
Contributor
Contributor

More to follow

0 Kudos
acschell
Contributor
Contributor

More to follow

0 Kudos
acschell
Contributor
Contributor

Last one

0 Kudos
bonnie201110141
VMware Employee
VMware Employee

Thanks for your response!

We might need a few more steps for clean up.

Please perform previous clean up again, but between step 5 and step 6, do extra steps below:

1.    Clean up driver package

Running cmd as administrator, and execute the following command

pnputil -e

The output may have several items, each item has format:

Published name :            oem2.inf

Driver package provider :   VMware, Inc.

Class :                     Universal Serial Bus controllers

Driver date and version :   07/12/2016 4.2.0.0

Signer name :               Microsoft Windows Hardware Compatibility Publisher

Find all items with “Driver package provider” is VMware, Inc, and remember the Published name, in this case, it is oem2.inf, output like this:

C:\Windows\system32>pnputil -f -d oem2.inf

Microsoft PnP Utility

Driver package deleted successfully.

Remove all items use this method for the output of “pnputil -e”.

Finally,  run

pnputil -e

again to make sure there has no “Driver package provider :   VMware, Inc.” exists.

2.    Cleanup driver store

Goto C:\Windows\System32\DRVSTORE, delete all sub-folder items prefix by:

Vmx86_

Hcmon_

Netuserif_

Vsock_

Goto C:\Windows\System32\DriverStore\FileRepository, delete all sub-folder items prefix by:

Vmci.inf_amd64_

Vmxnet3ndis6.inf_amd64_

vmusb.inf_amd64_

If it still does not work, please attach vmmsi.*.log and vminst*.log files as well as all setupapi.*.log in c:\windows\inf. Thanks a lot!

0 Kudos
acschell
Contributor
Contributor

Ultimately resulted in the same errors while installing.

When using the pnputil -e command, I did not see any items with Driver package provider as VMware.

There were none of the listed items in the drvstore or driverstore folders

The attached files here are from the Program Data\VMware\logs and from appdata\local\temp

I will attach files in another reply

0 Kudos
acschell
Contributor
Contributor

One more with the rest of the setupapi files

0 Kudos
acschell
Contributor
Contributor

setupapi files

0 Kudos
bonnie201110141
VMware Employee
VMware Employee

From the log, the error happen when we install vmusb/netbridge/netadapter/vmci drivers.

From setupapi.dev.log,

===================================

flq: {_commit_copyfile}

flq: CopyFile: 'C:\Users\acs\AppData\Local\Temp\{5f5042b8-f0c3-00c7-ea0b-e401025fd614}\vmusb.sys'

flq: to: 'C:\windows\System32\DriverStore\Temp\{431616f7-d661-75d8-1d2d-c8796036d55a}\SET5977.tmp'

flq: MoveFile: 'C:\windows\System32\DriverStore\Temp\{431616f7-d661-75d8-1d2d-c8796036d55a}\SET5977.tmp'

flq: to: 'C:\windows\System32\DriverStore\Temp\{431616f7-d661-75d8-1d2d-c8796036d55a}\vmusb.sys'

!!! flq: MoveFile: FAILED!

!!! flq: Error 32: The process cannot access the file because it is being used by another process.

!!! flq: Windows could not copy a boot file 'C:\windows\System32\DriverStore\Temp\{431616f7-d661-75d8-1d2d-c8796036d55a}\vmusb.sys' due to the presence of an in-use file.

!!! flq: Error installing file (0x00000005)

!!! flq: Error 5: Access is denied.

! flq: SourceFile   - 'C:\Users\acs\AppData\Local\Temp\{5f5042b8-f0c3-00c7-ea0b-e401025fd614}\vmusb.sys'

flq: TempFile     - 'C:\windows\System32\DriverStore\Temp\{431616f7-d661-75d8-1d2d-c8796036d55a}\SET5977.tmp'

! flq: TargetFile   - 'C:\windows\System32\DriverStore\Temp\{431616f7-d661-75d8-1d2d-c8796036d55a}\vmusb.sys'

flq: {SPFQNOTIFY_COPYERROR}

!!! sto: Failed to copy file 'C:\Users\acs\AppData\Local\Temp\{5f5042b8-f0c3-00c7-ea0b-e401025fd614}\vmusb.sys' to 'C:\windows\System32\DriverStore\Temp\{431616f7-d661-75d8-1d2d-c8796036d55a}\vmusb.sys'. Error = 0x00000005

sto: File 'C:\Users\acs\AppData\Local\Temp\{5f5042b8-f0c3-00c7-ea0b-e401025fd614}\vmusb.sys' is not in use by any processes.

flq: {SPFQNOTIFY_COPYERROR - returned 0x00000000}

!!! flq: SPFQNOTIFY_COPYERROR: returned SPFQOPERATION_ABORT.

!!! flq: Error 2: The system cannot find the file specified.

flq: {_commit_copyfile exit(0x00000002)}

flq: {_commit_copy_subqueue exit(0x00000002)}

====================================

There have several possibilities to cause this problem. Can you try below?

1.    Check anti-virus software log if you have one, this copy operation failure maybe caused by anti-virus deny this operation.

2.    After uninstall Workstation, goto 'C:\windows\System32\DriverStore\Temp’ folder, for every subdir, which is named as one GUID, find and delete sub-folders  which has these driver files: vmusb/netbridge/netadapter/vmci

For example, if you find 'C:\windows\System32\DriverStore\Temp\{431616f7-d661-75d8-1d2d-c8796036d55a}\vmusb.sys' exist, you should delete whole subfolder {431616f7-d661-75d8-1d2d-c8796036d55a}

3.    Check the 'C:\windows\System32\DriverStore\’ security properties, make sure the ‘system’ account have full control for this folder.

4.    It may cause by NTFS ‘alternate data streams’, go to website https://docs.microsoft.com/en-us/sysinternals/downloads/streams download the tool named streams, unpack it and save it to one folder, let’s say c:\temp, then in one administrator console, run this:

C:\> cd /d C:\windows\System32\DriverStore

C:\Windows\System32\DriverStore> c:\temp\streams -s *

If you get output like this (I created test.txt:stream in c:\test for demo):

C:\test> c:\temp\streams -s *

Streams v1.56 - Enumerate alternate NTFS data streams

Copyright (C) 1999-2007 Mark Russinovich

Sysinternals - www.sysinternals.com

C:\test\test.txt:

          :stream:$DATA 8

You need cleanup them, with this command (notice this command run inside C:\Windows\System32\DriverStore):

C:\Windows\System32\DriverStore> c:\temp\Streams -s -d *

Reinstall Workstation and check the result.

View solution in original post

0 Kudos
acschell
Contributor
Contributor

Thanks Bonnie,

It looked the problems stemmed from either antivirus interference or some new group policy which prevented the files from being correctly copied to the Driverstore folder during installation.

The problems occurred even on a freshly re-imaged laptop.

0 Kudos
Nemo152
Contributor
Contributor

Tried all options found here and everywhere. Can't find any solution. Did anybody solve this problem?

After update see this kind of error failed USB INF.

Looking forward to seeing anything.

0 Kudos
sAM0I
Contributor
Contributor

My installer had same stuff

This is log

Thanks

0 Kudos
sAM0I
Contributor
Contributor

here the other

Looking forward to your reply.

0 Kudos