Click here to Skip to main content
16,019,618 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a setup project that installs the application nicely. I have added a dialog for a checkbox "CREATE_SHORTCUT" and if it is selected the installer creates shortcut on desktop. This all works fine.

My application creates a folder and files during runtime.

While Uninstallting the application, those files & folder are not deleted hence the application folder is not deleted fro mthe Program Files. In Custom Actions, in uninstall I have added "Primary output.." with CustomActionData = /ALLUSERS=[ALLUSERS] /CREATE_SHORTCUT=[CREATE_SHORTCUT]. This removes the desktop shortcut if created. My issue is, how to delete that folder created by app so the uninstaller deletes the application folder also.

Any help is highly appreciated. Please try to help me at the earliest. I also thought of creating a bat file for uninstall, but then how can I provide AllUsers & Create Shortcut actions ??? Can my application get notification while uninstall, I cna delete the fodler at that time and then the uninstall can proceed. What can be possible among all above ??
Posted
Updated 17-Oct-11 0:04am
v2

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900