TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Microsoft Device Drivers

how to delete folders from system32\DriverStore\FileRepository?

Microsoft Device Drivers

 
 
Thread Tools Display Modes
Unread 03-12-2007, 12:38 PM   #1
Scott Robins
Guest
 
Posts: n/a
how to delete folders from system32\DriverStore\FileRepository?

A bug in my .INF file allowed a user to attempt to install x64 printer
driver on 32-bit vista.

It doesn't complete, but the files get copied to the above-mentioned folder.

And subsequent attempts to install the 32-bit driver fails because
apparently vista is using the folder as a cache and ignoring the folder the
user specifies in the add printer wizard.

I reproduced the problem on my dev machine and cannot for the life of me get
rid of the folder. I try running explorer as admin.
I ask to delete it, it says, "are you sure", I say yes, UAC pops up, I say
"yes" again,
and it still says, "you need permission".

Is there some special magic I don't know about?

Thanks,
ScottR
--
ScottR
--
Scott Robins
 
Unread 03-12-2007, 12:39 PM   #2
Kevin
Guest
 
Posts: n/a
Re: how to delete folders from system32\DriverStore\FileRepository?

Use "pnputil -e" to list the OEM###.INF files, find the one you want to
delete, then use "pnputil -d oem###.inf" to delete it.


"Scott Robins" <ScottRobins@discussions.microsoft.com> wrote in message
news:F6BE71C5-88EB-49F8-870B-818B208F85C2@microsoft.com...
>A bug in my .INF file allowed a user to attempt to install x64 printer
> driver on 32-bit vista.
>
> It doesn't complete, but the files get copied to the above-mentioned
> folder.
>
> And subsequent attempts to install the 32-bit driver fails because
> apparently vista is using the folder as a cache and ignoring the folder
> the
> user specifies in the add printer wizard.
>
> I reproduced the problem on my dev machine and cannot for the life of me
> get
> rid of the folder. I try running explorer as admin.
> I ask to delete it, it says, "are you sure", I say yes, UAC pops up, I say
> "yes" again,
> and it still says, "you need permission".
>
> Is there some special magic I don't know about?
>
> Thanks,
> ScottR
> --
> ScottR
> --
> Scott Robins



 
Unread 03-12-2007, 12:40 PM   #3
Kevin
Guest
 
Posts: n/a
Re: how to delete folders from system32\DriverStore\FileRepository

Well, that was the only Vista-specific info I had with respect to installing
/ uninstall driver files.

So, the only other Vista-specific suggestion is to use TAKEOWN.EXE to take
ownership of the folder, and ICACLS.EXE to change permissions on it.

I would suggest renaming it first, then rebooting, and making sure
everything works properly, before actually deleting the folder.

Or, maybe, if you do the Vista-equivalent to "Show Hidden Devices", you can
use Device Manager to uninstall it.

Maybe, because of the 32- vs. 64-bit problem, pnputil.exe will not delete
these files, or maybe the relevant oem.inf is still present on the system,
because it should not be necessary to manually remove these folders.


"Scott Robins" <ScottRobins@discussions.microsoft.com> wrote in message
news:9822B3A2-9856-4144-82A4-E847C0DF7062@microsoft.com...
> That really doesn't help me delete the folder mentioned in the original
> post.
> --
> ScottR
> --
> Scott Robins
>



 
Unread 03-12-2007, 12:48 PM   #4
Scott Robins
Guest
 
Posts: n/a
Re: how to delete folders from system32\DriverStore\FileRepository

That really doesn't help me delete the folder mentioned in the original post.
--
ScottR
--
Scott Robins

 
Unread 03-12-2007, 12:51 PM   #5
Kevin
Guest
 
Posts: n/a
Re: how to delete folders from system32\DriverStore\FileRepository

Well, that was the only Vista-specific info I had with respect to installing
/ uninstall driver files.

So, the only other Vista-specific suggestion is to use TAKEOWN.EXE to take
ownership of the folder, and ICACLS.EXE to change permissions on it.

I would suggest renaming it first, then rebooting, and making sure
everything works properly, before actually deleting the folder.

Or, maybe, if you do the Vista-equivalent to "Show Hidden Devices", you can
use Device Manager to uninstall it.

Maybe, because of the 32- vs. 64-bit problem, pnputil.exe will not delete
these files, or maybe the relevant oem.inf is still present on the system,
because it should not be necessary to manually remove these folders.


"Scott Robins" <ScottRobins@discussions.microsoft.com> wrote in message
news:9822B3A2-9856-4144-82A4-E847C0DF7062@microsoft.com...
> That really doesn't help me delete the folder mentioned in the original
> post.
> --
> ScottR
> --
> Scott Robins
>



 
Unread 03-12-2007, 01:15 PM   #6
Scott Robins
Guest
 
Posts: n/a
Re: how to delete folders from system32\DriverStore\FileRepository

That really doesn't help me delete the folder mentioned in the original post.
--
ScottR
--
Scott Robins

 
Unread 03-12-2007, 01:18 PM   #7
Kevin
Guest
 
Posts: n/a
Re: how to delete folders from system32\DriverStore\FileRepository

Well, that was the only Vista-specific info I had with respect to installing
/ uninstall driver files.

So, the only other Vista-specific suggestion is to use TAKEOWN.EXE to take
ownership of the folder, and ICACLS.EXE to change permissions on it.

I would suggest renaming it first, then rebooting, and making sure
everything works properly, before actually deleting the folder.

Or, maybe, if you do the Vista-equivalent to "Show Hidden Devices", you can
use Device Manager to uninstall it.

Maybe, because of the 32- vs. 64-bit problem, pnputil.exe will not delete
these files, or maybe the relevant oem.inf is still present on the system,
because it should not be necessary to manually remove these folders.


"Scott Robins" <ScottRobins@discussions.microsoft.com> wrote in message
news:9822B3A2-9856-4144-82A4-E847C0DF7062@microsoft.com...
> That really doesn't help me delete the folder mentioned in the original
> post.
> --
> ScottR
> --
> Scott Robins
>



 
Unread 03-12-2007, 01:29 PM   #8
Scott Robins
Guest
 
Posts: n/a
Re: how to delete folders from system32\DriverStore\FileRepository

That really doesn't help me delete the folder mentioned in the original post.
--
ScottR
--
Scott Robins

 
Unread 03-12-2007, 01:32 PM   #9
Kevin
Guest
 
Posts: n/a
Re: how to delete folders from system32\DriverStore\FileRepository

Well, that was the only Vista-specific info I had with respect to installing
/ uninstall driver files.

So, the only other Vista-specific suggestion is to use TAKEOWN.EXE to take
ownership of the folder, and ICACLS.EXE to change permissions on it.

I would suggest renaming it first, then rebooting, and making sure
everything works properly, before actually deleting the folder.

Or, maybe, if you do the Vista-equivalent to "Show Hidden Devices", you can
use Device Manager to uninstall it.

Maybe, because of the 32- vs. 64-bit problem, pnputil.exe will not delete
these files, or maybe the relevant oem.inf is still present on the system,
because it should not be necessary to manually remove these folders.


"Scott Robins" <ScottRobins@discussions.microsoft.com> wrote in message
news:9822B3A2-9856-4144-82A4-E847C0DF7062@microsoft.com...
> That really doesn't help me delete the folder mentioned in the original
> post.
> --
> ScottR
> --
> Scott Robins
>



 
 

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 05:11 PM.


vBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2013, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional