Develop Office Client Applications using Visual Studio
In an attempt to make this easier to read here are a few terms I will be using frequently in this article:
Some of our customers have raised an issue with the bootstrapper failing after deploying their customizations onto a user’s machine that has previously had VSTOR & VSTORSP1 installed.
The problem occurs when an end user installs VSTOR followed by VSTORSP1 then subsequently uninstalls VSTOR from the Add/Remove Programs wizard. The uninstall removes the entire product including the service pack but fails to update the registry keys that our bootstrapper uses to detect if VSTOR is installed. If a user then installs a customization using the bootstrapper it will incorrectly detect that VSTOR is installed and proceed to install VSTORSP1, at which point it fails.
I recently responded to a customer on the VSTO forums ( http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/2dd02b04-cc89-47c3-8f76-462ecfbee65e ) regarding this issue where I approached it from an end-user perspective, providing them with a list of fixes for post-deployment use. The purpose of this article is to provide a solution that developers can utilize so that end-users machines do not require post-deployment modification.
This workaround will allow developers to bake the correct VSTOR detection logic into every customization they develop that utilizes the bootstrapper.
Here is what you need to do:
And that’s it! Now that you have made these changes to your product.xml, every VSTO customization you build and deploy with a bootstrapper will correctly detect if VSTOR is installed regardless of what state the end-users machine is in.
PingBack from http://www.clickandsolve.com/?p=4626
This will save us support calls in the future...
I encountered another problem, on a Vista system VSTO installer wants .NET 3.5 SP1.
On a XP system it is working without asking for .NET 3.5 SP1.
Thanks for this post - I had tried to clean a test machine by uninstalling everything and was beginning to think I was going mad!
BTW: Why is VSTO deployment such a minefield???
Thanks a lot , u saved my whole day.
Ufff... Finally one great expert that know the stone's way ! Thanks Friend !
The situation still exists in VSTOR40.
How do I do this in VSTOR40? Are the keys the same? I guess not .... What changes do I need to make to the Product.xml file for VSTOR40?
for step 1) What do you mean by the development machine? Is it the computer that the error pops up on?
2) How do I get into replacing the element? is this done in command prompt