Add-in uninstal fails - preventing installation of new version

I

István Becze

I'm developing and Outlook add-in, using Visual Studio 2005 and VSTO 2005 SE.

I'm working on the Setup project. I created a version where the Install part
runs correctly, but the Uninstall part has an error and causes a run-time
exception.

1) I installed the add-in from VS, but when I tried to uninstall it from VS
it crashed. 2) I corrected the Uninstall part of the Setup project, rebuilt
the solution, but it still causes an exception.
3) When I tried to remove the program from the Add or Remove Programs in
Control Panel, it said that the program is not the one that installed the
product.
4) When I try to install the new, corrected version on top of the old, it
seems, that it is trying to uninstall the previous version, and it crashes
again. (This happens with the RemovePreviousVersion property of the Setup
project set to false.)

Is there anything else that I should try install the add-in over the
existing one, or to force the system to think that there is no previous
version?

Theoretically, it could be an option to remove all registry keys that the
installation sets, but I cannot find a comprehensive description of what VS /
VSTO enters in the registry in the development environment.

Is there anybody who had similar experience?

Thanks in advance,

István
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top