/build/static/layout/Breadcrumb_cap_w.png

Unable to delete Files during uninstallation

Hi,

I am making a package for Rational XDE Develper. It has a vendor MSI and it is leaving some files after uninstallation. To Resolve this i wrote a custom action to remove these files. But during uninstallation the files are in use hence the custom action fails.
I have placed the custom action at the end of install execute sequence. But even then it is not working. The file name is Xdesetup.dll.
I tried killing the process which is using that file but then the uninstallation stops at "removing backup file" stage only.
Can anyone suggest me a way of deleting the file at the end when all the processes have exited.

Regards

Sunny

0 Comments   [ + ] Show comments

Answers (2)

Posted by: MSIMaker 19 years ago
2nd Degree Black Belt
0
Are you sure there isnt some sort of service that is using that file?

If so then stop the service and then delete it.
Posted by: vin_hegde_94 19 years ago
Senior Yellow Belt
0
Hi,

No there is no service using the file but a process idriver.exe which is using that file during uninstallation.
when i run my custom script during uninstallation it cannot delete it and even though if i kill the process the uninstallation hangs up. I am not able to place my custom action at the end of installation sequence. I have placed my custom action at the end as present in the installexecute sequence but still it is running before the idriver.exe exits. can u tell me any way of placing the custom action at the end.

Regards
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ