We have an internal tool that allows users to configure and launch their Excel sessions. For example, they can choose specific versions of our Excel add-ins, different environment variables etc. Some users even start two different Excel sessions simultaneously that use different add-ins versions.
We want to allow users to select different versions of our Excel VSTO add-in. Right now the tool executes a batch script that sets the appropriate registry entries prior running Excel. Ideally, they should be able to run different versions simultaneously. Is that possible?
One option would be to publish different versions of the VSTO add-in with distinct names and then select the right version to be loaded programmatically when Excel starts. I'm not sure how to achieve that, however it isn't ideal because all of the versions would appear in the list of COM Add-Ins in Excel.
I'm thinking about customising the script that creates the VSTO registry entries to change the entry prior running excel. So we'll have only one entry for our VSTO add-in, and we'll be changing it's location property to point to different versions of the add-in. Would that work and do you see any potential issues when two Excel instances are started with different locations for the same VSTO plugin?