Avatar of Member_2_1348041
Flag for Ireland asked on

Outlook add-in - new version headscratcher....


Build myself a wee little outlook add-in based on the VSTO model. Works nicely. But now I'm looking at deployment. The first time I deploy the add-in it installs fine, and everything seems hunky dory.

I then make a change to the application. Some of its DLLs remain the same, others are changed. So I recompile the Solution, I increment the Version number in the deployment project, which prompts me to change the product code (which I do) but that leaves the Upgrade Code intact (ok...). I set RemovePreviousVersions to True ...

And it installs the newer version fine. But now it doesn't run.

So I set RemovePreviousVrsions to False

And it still installs the newer version fine, but now there are TWO entries for my product in Programs and Features.

Neither of which are acceptable. What am I doing wrong?
Visual Basic.NETOutlook.NET Programming

Avatar of undefined
Last Comment

8/22/2022 - Mon
Jackie Man

Have you closed outlook before the upgrade?

Make sure outlook.com is not in the process list before you do the upgrade.

Besides, the best practice of upgrading outlook add-in is as follows:-

1. Shut down outlook, i.e. make sure outlook.com is not in the process list;
2. Uninstall the old add-in;
3. Log out windows;
4. Install the new add-in;
5. Start outlook to see whether the new add-in is running.


I am *developing* the add-in, and I want to create a setup procedure that is as easy as follows. If I can in ANY way develop it so that the user does NOT have to "uninstall" the add-in before installing Version +1, that's the way it's going to go. We have customers with several workstations. Telling them they need to install our New and Improved Add-in on all those machines is one thing, telling them they need to un-install, log out, re-install.... is almost unacceptable.
Jackie Man

If you want to have silent deployment which will cause minimum disruption to the user, you need to create msi package and push the update to the client PC.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes

Correct. But all the msi packages I've tried don't work (see my opening statement). So what may I be doing wrong?
Jackie Man

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

I was going to go "well DUH", but then I had a quick look at the article and after head-desking for a while and kicking an unsuspecting dog in the street, I've returned to thank you for this information