Skip to content

Instantly share code, notes, and snippets.

@becm
Created September 30, 2020 18:08
Show Gist options
  • Save becm/a70f0bdcf218cda4403b9a441430cf89 to your computer and use it in GitHub Desktop.
Save becm/a70f0bdcf218cda4403b9a441430cf89 to your computer and use it in GitHub Desktop.
MSM update old TAP driver removal
>>> [SetupUninstallOEMInf - oem16.inf]
>>> Section start 2020/09/30 19:22:15.082
cmd: C:\Windows\System32\MsiExec.exe -Embedding E1EDC6781DDBC0DECDC2BE8484077249 E Global\MSI0000
inf: Flags: 0x00000001
dvs: {DrvSetupUninstallDriver - C:\WINDOWS\INF\oem16.inf}
dvs: Flags: 0x10000001
dvs: {Driver Setup Delete Driver Package: oem16.inf} 19:22:15.098
ump: Delete flags: 0x00000002
pol: {Driver package policy check} 19:22:15.098
pol: {Driver package policy check - exit(0x00000000)} 19:22:15.098
sto: {Unstage Driver Package: C:\WINDOWS\System32\DriverStore\FileRepository\oemvista.inf_amd64_6d4bec28a2ef0cdf\oemvista.inf} 19:22:15.113
sto: {Core Driver Package Delete: oemvista.inf_amd64_6d4bec28a2ef0cdf} 19:22:15.113
sto: {DRIVERSTORE DELETE BEGIN} 19:22:15.113
sto: {DRIVERSTORE DELETE BEGIN: exit(0x00000000)} 19:22:15.113
sto: {Unconfigure Driver Package: C:\WINDOWS\System32\DriverStore\FileRepository\oemvista.inf_amd64_6d4bec28a2ef0cdf\oemvista.inf}
inf: Class GUID = {4d36e972-e325-11ce-bfc1-08002be10318}
inf: Class Options = Configurable
inf: {Unconfigure Driver: TAP-Windows Adapter V9}
inf: Section Name = tap0901.ndi
inf: {Add Service: tap0901}
inf: Deleted service 'tap0901'.
inf: {Add Service: exit(0x00000000)}
inf: Hardware Id = root\tap0901
inf: {Unconfigure Driver: exit(0x00000000)}
inf: {Unconfigure Driver: TAP-Windows Adapter V9}
inf: Section Name = tap0901.ndi
inf: Hardware Id = tap0901
inf: {Unconfigure Driver: exit(0x00000000)}
flq: {FILE_QUEUE_COMMIT} 19:22:15.129
flq: DeleteFile: 'C:\WINDOWS\System32\drivers\tap0901.sys'
flq: DeleteFile: 'C:\WINDOWS\System32\drivers\tap0901.sys'
flq: DeleteFile: success
flq: {FILE_QUEUE_COMMIT - exit(0x00000000)} 19:22:15.129
sto: {Unconfigure Driver Package: exit(0x00000000)}
idb: {Unpublish Driver Package: C:\WINDOWS\System32\DriverStore\FileRepository\oemvista.inf_amd64_6d4bec28a2ef0cdf\oemvista.inf} 19:22:15.129
idb: Clearing active driver package 'oemvista.inf_amd64_6d4bec28a2ef0cdf'.
cpy: Unpublished 'oem16.inf'.
idb: Deindexed 3 device IDs for 'oemvista.inf_amd64_6d4bec28a2ef0cdf'.
sto: Flushed driver database node 'DRIVERS'. Time = 16 ms
sto: Flushed driver database node 'SYSTEM'. Time = 0 ms
idb: {Unpublish Driver Package: exit(0x00000000)} 19:22:15.145
idb: {Unregister Driver Package: C:\WINDOWS\System32\DriverStore\FileRepository\oemvista.inf_amd64_6d4bec28a2ef0cdf\oemvista.inf} 19:22:15.145
idb: Unregistered driver package 'oemvista.inf_amd64_6d4bec28a2ef0cdf' from 'oem16.inf'.
idb: Deleted driver package object 'oemvista.inf_amd64_6d4bec28a2ef0cdf' from DRIVERS database node.
idb: Deleted driver INF file object 'oem16.inf' from DRIVERS database node.
idb: {Unregister Driver Package: exit(0x00000000)} 19:22:15.145
cpy: {Delete Directory: C:\WINDOWS\System32\DriverStore\FileRepository\oemvista.inf_amd64_6d4bec28a2ef0cdf} 19:22:15.145
cpy: {Delete Directory: exit(0x00000000)} 19:22:15.145
sto: {DRIVERSTORE DELETE END} 19:22:15.145
sig: Uninstalled catalog 'oem16.cat'.
sto: {DRIVERSTORE DELETE END: exit(0x00000000)} 19:22:15.145
sto: {Core Driver Package Delete: exit(0x00000000)} 19:22:15.145
sto: {Unstage Driver Package: exit(0x00000000)} 19:22:15.160
dvs: {Driver Setup Delete Driver Package - exit (0x00000000)} 19:22:15.160
dvs: {DrvSetupUninstallDriver - exit(00000000)}
<<< Section end 2020/09/30 19:22:15.160
<<< [Exit status: SUCCESS]
>>> [SetupUninstallOEMInf - oem16.inf]
>>> Section start 2020/09/30 19:24:32.564
cmd: C:\Windows\System32\MsiExec.exe -Embedding A0210B858A3DDF1B24B824038ACBC269 E Global\MSI0000
inf: Flags: 0x00000001
dvs: {DrvSetupUninstallDriver - C:\WINDOWS\INF\oem16.inf}
dvs: Flags: 0x10000001
dvs: {Driver Setup Delete Driver Package: oem16.inf} 19:24:32.580
! utl: INF INF 'oem16.inf' still in use by device 'ROOT\NET\0000'.
! utl: Primary INF 'oem16.inf' is still in use by devices.
! dvs: Forcing uninstall of INF 'oem16.inf' still in use by devices.
utl: Invalidated INF 'oem16.inf' on device 'ROOT\NET\0000'.
ump: Delete flags: 0x00010002
pol: {Driver package policy check} 19:24:32.595
pol: {Driver package policy check - exit(0x00000000)} 19:24:32.595
sto: {Unstage Driver Package: C:\WINDOWS\System32\DriverStore\FileRepository\oemvista.inf_amd64_6d4bec28a2ef0cdf\oemvista.inf} 19:24:32.595
sto: {Core Driver Package Delete: oemvista.inf_amd64_6d4bec28a2ef0cdf} 19:24:32.595
sto: {DRIVERSTORE DELETE BEGIN} 19:24:32.595
sto: {DRIVERSTORE DELETE BEGIN: exit(0x00000000)} 19:24:32.611
sto: {Unconfigure Driver Package: C:\WINDOWS\System32\DriverStore\FileRepository\oemvista.inf_amd64_6d4bec28a2ef0cdf\oemvista.inf}
inf: Class GUID = {4d36e972-e325-11ce-bfc1-08002be10318}
inf: Class Options = Configurable
inf: {Unconfigure Driver: TAP-Windows Adapter V9}
inf: Section Name = tap0901.ndi
inf: {Add Service: tap0901}
inf: Service 'tap0901' remains with owner '!oemvista.inf_amd64_6d4bec28a2ef0cdf'.
inf: Service 'tap0901' still in use by 1 source.
inf: {Add Service: exit(0x00000000)}
inf: File 'C:\WINDOWS\System32\drivers\tap0901.sys' remains with owner '!oemvista.inf_amd64_6d4bec28a2ef0cdf'.
inf: File 'C:\WINDOWS\System32\drivers\tap0901.sys' still in use by 1 source.
inf: {Unconfigure Driver: exit(0x00000000)}
inf: {Unconfigure Driver: TAP-Windows Adapter V9}
inf: Section Name = tap0901.ndi
inf: {Unconfigure Driver: exit(0x00000000)}
flq: {FILE_QUEUE_COMMIT} 19:24:32.611
flq: {FILE_QUEUE_COMMIT - exit(0x00000000)} 19:24:32.611
sto: {Unconfigure Driver Package: exit(0x00000000)}
idb: {Unpublish Driver Package: C:\WINDOWS\System32\DriverStore\FileRepository\oemvista.inf_amd64_6d4bec28a2ef0cdf\oemvista.inf} 19:24:32.611
idb: Clearing active driver package 'oemvista.inf_amd64_6d4bec28a2ef0cdf'.
cpy: Unpublished 'oem16.inf'.
idb: Deindexed 3 device IDs for 'oemvista.inf_amd64_6d4bec28a2ef0cdf'.
sto: Flushed driver database node 'DRIVERS'. Time = 32 ms
sto: Flushed driver database node 'SYSTEM'. Time = 15 ms
idb: {Unpublish Driver Package: exit(0x00000000)} 19:24:32.673
idb: {Unregister Driver Package: C:\WINDOWS\System32\DriverStore\FileRepository\oemvista.inf_amd64_6d4bec28a2ef0cdf\oemvista.inf} 19:24:32.673
idb: Unregistered driver package 'oemvista.inf_amd64_6d4bec28a2ef0cdf' from 'oem16.inf'.
idb: Deleted driver package object 'oemvista.inf_amd64_6d4bec28a2ef0cdf' from DRIVERS database node.
idb: Deleted driver INF file object 'oem16.inf' from DRIVERS database node.
idb: {Unregister Driver Package: exit(0x00000000)} 19:24:32.673
cpy: {Delete Directory: C:\WINDOWS\System32\DriverStore\FileRepository\oemvista.inf_amd64_6d4bec28a2ef0cdf} 19:24:32.673
cpy: {Delete Directory: exit(0x00000000)} 19:24:32.689
sto: {DRIVERSTORE DELETE END} 19:24:32.689
sig: Uninstalled catalog 'oem16.cat'.
sto: {DRIVERSTORE DELETE END: exit(0x00000000)} 19:24:32.689
sto: {Core Driver Package Delete: exit(0x00000000)} 19:24:32.689
sto: {Unstage Driver Package: exit(0x00000000)} 19:24:32.689
dvs: {Driver Setup Delete Driver Package - exit (0x00000000)} 19:24:32.689
dvs: {DrvSetupUninstallDriver - exit(00000000)}
<<< Section end 2020/09/30 19:24:32.689
<<< [Exit status: SUCCESS]
@oleR0
Copy link

oleR0 commented Aug 25, 2021

Hi! Can you share the information how the problem with "File 'C:\WINDOWS\System32\drivers\tap0901.sys' still in use by 1 source" was fixed?

@becm
Copy link
Author

becm commented Sep 2, 2021

See related issue in openvpn/tap-windows6.
Driver installer was changed to avoid problem.
Manual repair (while a working driver is still installed) is to remove broken references to !oemvista.inf_amd64_….
Cleaning 2nd entry requires regedit execution with elevated priviledges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment