A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

prevent user from installing wrong version of add-in



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 21st 09, 06:53 AM posted to microsoft.public.outlook.program_addins
Jason
external usenet poster
 
Posts: 41
Default prevent user from installing wrong version of add-in

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
  #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.



  #3  
Old March 29th 09, 05:46 PM posted to microsoft.public.outlook.program_addins
Jason
external usenet poster
 
Posts: 41
Default prevent user from installing wrong version of add-in

Checking PIA works. It is enough just checking PIA without checking Outlook.
PIA checking will not get through in all 3 possible cases:
1. Office is not installed at all
2. Office is installed but not Outlook
3. Outlook is installed but version does not match PIA

Thanks Ken.

"Ken Slovak - [MVP - Outlook]" wrote in message
...
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.





 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Trial Version of Outlook 2007 Bobr Outlook - General Queries 1 October 1st 08 10:09 PM
Installing stand-alone version of Outlook 2003 DS Outlook - Installation 1 September 25th 07 08:18 PM
MAPI32.DLL Corrupt or Wrong Version John Outlook - Installation 6 March 19th 07 11:33 PM
MAPI32.DLL wrong version RWT Outlook - Installation 1 June 10th 06 08:07 PM
installing outlook over office trial version bret Outlook - Installation 1 January 9th 06 10:31 PM


All times are GMT +1. The time now is 09:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.