cant able to delete folder while uninstallation
Updated: 21 Apr 2011 | 3 comments
This issue has been solved. See solution.
Hi
I am trying to create a folder during MSI installation in D drive, while uninstallation of MSI delete a folder.
i have used a CA call vbscript from embaded code to create and delete a folder in UI sequence.
this works fine for D drive for create folder & delete folder. If i select destination drive as C drive folder will create but while uninstalling MSI, folder will not delete. I have set the D drive as default drive. I have to set destnation drive default as D only. this is my project requirement.
The wsi file is attached. Need help.
Discussion Filed Under:
Comments
User settings are not stored
User settings are not stored anywhere during MSI installation, so if your folder creation can take place on any drive letter, then you need to do one of two things:
1. Record the location of the created folder in the registry, so that your custom action can find where it was created, and delete it at uninstall.
or
2. Edit your custom action so that it searches for the folder on each drive letter, starting with your default, and deletes it when found. This option is only reliable if you have a unique folder name.
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
Certain issue's in wsi
Get the verbose log of your un-installation and you will see that delete_folder custom action is not executed. So finally change the sequence of your custom action.
@Umeshbg I just re-read your
@Umeshbg
I just re-read your posting and noticed that your create/delete folder CA is in the UI sequence. Please note that on uninstall, the UI sequence does not run. Ideally, any actions that make system changes should be in the Execute Deferred sequence, but I appreciate this is not always possible. However, in your situation, the uninstall part of your action should be in the Execute sequence.
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
Would you like to reply?
Login or Register to post your comment.