I've created a Visual studio Setup Project, and I have an Installer Classes created for my main App. In this Installer Class, I overridden the Uninstaller function to clean extra folders created by my app. This works fine in windows XP, but not in Windows 7 since I assume it has something to do with UAC. How Can I force my Uninstaller to elevate privileges?
I've asked this question in another post, but I wasn't clear on my intentions.
I've found these links but I don't know if it's relevant:
http://msdn.microsoft.com/en-us/library/aa370852.aspx
http://msdn.microsoft.com/en-us/library/aa370134%28v=VS.85%29.aspx
UPDATE (11/7/2011)
I found out about Orca which it can be used to modify the msi install app properties, but there are no proper documentation for it, (or examples/tutorials). So here are the steps I took to fix this issue:
- open the appInstal.msi with Orca.
- from the Left Tables click on customAction
- add a new entry to the end of all the rows (by double clicking a new row)
- type Elevate_Install_Uninstall for Action names and 3072 for type
- type ALL for target and leave Source empty
Hope this helps someone/