View Single Post
  #2  
Old March 23rd 09, 01:53 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default prevent user from installing wrong version of add-in

VSTO or not, that article gives you all you need. You need to set up a
bootstrapper package condition that checks for Office/Outlook installed at
all and that the correct version is installed.

The article shows an ExternalCheck which calls ComponentCheck.exe with the
component code you want verify. The codes for Outlook 2003 and 2007 are
listed below that.

I use something a little different, I put an AssemblyCheck into the
InstallChecks node that looks for the Outlook public key token and a
version of "11.0.0.0" for Outlook 2003 or "12.0.0.0" for Outlook 2007. I
also use a RegistryCheck on
HKCR\CLSID\{0006F0#A-0000-0000-C000-000000000046}\ProgID, which is only
there if an Outlook PIA is installed.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Jason" wrote in message
...
Are there any ways, such as using launch conditions, to stop the
installation when the version of Outlook does not match the version of
add-in?

Both setup.exe and msi can run through regardless the version of Outlook.

MS article "Deploying VSTO 2005 SE Solutions Using Windows Installer" only
talks about VSTO version.



Ads