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
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)
Please log in to answer
Posted by:
MSIMaker
19 years ago
Posted by:
vin_hegde_94
19 years ago
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
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.
so that the conversation will remain readable.