deleting registry key, using Visual Studio 2008 setup and deployment project in windows 7

Posted by Isuru on Stack Overflow See other posts from Stack Overflow or by Isuru
Published on 2010-03-21T04:46:44Z Indexed on 2010/03/21 5:01 UTC
Read the original article Hit count: 556

I have created a setup and deployment project in Visual Studio 2008 Professional. I'm using Visual C++, and in it I have two exe files which run under custom actions. One is running in commit and other in uninstall. Purpose is to add a registry key at install time and remove it at uninstall. It works perfectly on Windows XP but when I change to Windows 7 and run the setup, only the key-adding part works. The key doesn't get deleted at uninstall. But when I take the uninstall exe file out from the setup and run it separately on Windows 7, (not through the setup, by just double-clicking on the exe) it removes the registry entry perfectly. Any idea what the problem is?

© Stack Overflow or respective owner

Related posts about setup-deployment

Related posts about visual-studio-2008