The *.sys Files Can Not Be Deleted When Uninstalling Drivers - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Seamoon
Posts: 4
Joined: Tue Sep 22, 2009 4:23 am

The *.sys Files Can Not Be Deleted When Uninstalling Drivers

Hi,
I made a driver package using the driver wizard.When I tried to uninstall the drivers,I found the *.sys files in "system32\drivers" folder can not be deleted on the "Windows Vista" and "Windows 7 system".I do have the administrator privilege.But the files can be completely deleted on a Windows XP system.Do I need to set some items to solve the problem?
Thanks!
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: The *.sys Files Can Not Be Deleted When Uninstalling Drivers

Hello,

Please note that your drivers might still be in use by the system.
Also, you might need to take ownership of those files before being able to delete them. Here is an article on how to delete a system file that might help.

Also, does a reboot solve this problem?

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Seamoon
Posts: 4
Joined: Tue Sep 22, 2009 4:23 am

Re: The *.sys Files Can Not Be Deleted When Uninstalling Drivers

Hi,
Thanks for your help! I've read the article you gave to me.The sys files can not be deleted only on the Windows 7 system.I'm not familiar with Windows 7. I tried to write a vbscript to delete the files during uninstallation,but it said "don't have the right".I think maybe the security level is too high that the system files can not be deleted by auto installation ,for I can delete the files manually.If I do as the article,how could I get the user name,for I want the package can be installed on different machines by different users?
Thanks!
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: The *.sys Files Can Not Be Deleted When Uninstalling Drivers

Hello,
Thanks for your help! I've read the article you gave to me.The sys files can not be deleted only on the Windows 7 system.I'm not familiar with Windows 7.
I am not sure what causes this behavior. Could you send your .aip project file (or a stripped down version that accurately reproduces this behavior) to support at advancedinstaller dot com and an uninstall log.
I can delete the files manually.
Since you can manually delete those files, then I believe the article I provided you with will not be of use. Sending us your project file and the log will help us further assist you.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”