This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Programmatically deleting file from DriverStore folder in Vista
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 27, 2009
03:28 PM
Programmatically deleting file from DriverStore folder in Vista
Hello, as part of cleanup prior to installing a 3rd party PDF converter driver on Vista systems, I need our InstallShield 2008 Premier Edition install to remove a specific file from a subfolder under the C:\Windows\System32\DriverStore\FileRepository folder. If I manually take ownership of the file I can delete it, but if I try to have the file deleted automatically through our InstallShield install the DeleteFile() method fails - I believe due to the strict Vista security inherent on that driver cache folder. Is there a way to delete the file using a method in InstallScript that satisfies Vista security? Any help would be appreciated. Thanks.
Regards,
Randy
Regards,
Randy
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 31, 2009
11:38 AM
you can use DPInst.exe to delete driver packages from driverstore\filerepository. For more info, visit http://msdn.microsoft.com/en-us/library/ms790806.aspx.
But if you want to delete single file, then this won't help you.
But if you want to delete single file, then this won't help you.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 19, 2014
02:54 AM
james83 wrote:
you can use DPInst.exe to delete driver packages from driverstore\filerepository. For more info, visit http://msdn.microsoft.com/en-us/library/ms790806.aspx.
But if you want to delete single file, then this won't help you.
Hi,
How to use DPInst.exe in InstallScript to delete the entire FileRepository folder where our driver files are stored? As you know, the folder names are created by Windows so we do not know the folder name under FileRepository where the files are stored. Executing the DPInst.exe requires the directory path, right?
Example: C:\Windows\System32\DriverStore\FileRepository\
In Windows 8.1, our drivers are being called from the FileRepository folder even if we already have uninstall the Installer program. Our Installer program does not delete the FileRepository folder.
Hoping for any answer.
Mike
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)