prevent user from installing wrong version of add-in

Status
Not open for further replies.
J

Jason

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

Ken Slovak - [MVP - Outlook]

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.

"Jason" <a@a.com> wrote in message

news:eFQEYIfqJHA.1912@TK2MSFTNGP02.phx.gbl...
> 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.

>
 
J

Jason

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.
<kenslovak@mvps.org> wrote in message

news:eKMx867qJHA.4436@TK2MSFTNGP04.phx.gbl...
> 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.

> >

>

> "Jason" <a@a.com> wrote in message
> news:eFQEYIfqJHA.1912@TK2MSFTNGP02.phx.gbl...
> > 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.
>

>>

>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
N Allow Another User to Send on Behalf of But Prevent Access to Inbox Using Outlook 4
D Prevent popup of "Do you want to save changes?" when closing after opening an appointment to view Outlook VBA and Custom Forms 2
O How to prevent CC from showing when creating a new mail? Using Outlook 1
A Prevent connection to Public Folders on Exchange? Exchange Server Administration 3
L OL 2016 contact: is there a way to prevent an admin from mistakenly deleting a contact? Using Outlook 1
D Multiple mailboxes, 1 certificate. How to prevent message "Invalid Certificate" Using Outlook 0
S How to prevent addins Using Outlook 0
makinmyway How Prevent Re-Formatting of Contact Notes Field When Syncing Using Outlook 10
Diane Poremsky Prevent Users From Choosing Stationery New Slipstick.com Articles 0
evdbogaard How to prevent extra line feeds in replies Using Outlook 3
oliv- Prevent copying shared contacts Outlook VBA and Custom Forms 5
oj43085 Prevent Outlook from blocking image from a single source Using Outlook 4
I How to prevent exchange email account from sending emails in Outlook Using Outlook 4
D Prevent Outlook from resolving incomplete contact when clicking send Using Outlook 2
K Prevent meeting requests being sent from a shared calendar in a group mailbox Using Outlook 1
N Prevent reminder dismisal in shared calendar Using Outlook 1
C Security Question - How to prevent users exporting .iaf files Using Outlook 5
B Item_Write = False don't prevent custom form from closing Using Outlook 1
T WAB editing: To help prevent malicious code from running.......... Using Outlook 18
R Exchange 2010 archive-prevent users moving items direct to archive Exchange Server Administration 1
M Links prevent sending email Using Outlook 3
S How to Prevent of using CC field Using Outlook 1
D Received emails show only red X's no images - Email set for HTML. Prevent download of images is OFF Using Outlook 6
D Images showing up as X's in Outlook 2003 emails. Outlook is set to HTML and Prevent Picture downloa Using Outlook 2
V Prevent appointments not yet accepted from showing up in Calendars Using Outlook 3
B Prevent changing of appointment time or date by other users Using Outlook 1
B how do you prevent email adressess from popping when sending a new email Using Outlook 1
J When I try to click on a link embedded in an email I get an error that says that computer restrictions prevent access. Call the system administrator Using Outlook 1
E Prevent Looping Message using transport rule Exchange Server Administration 4
C Prevent clients outlook anywhere URL from being changed by autodiscover? Using Outlook 4
L Prevent Exchange from becoming default account on Windows 7 Using Outlook 5
K How to prevent that Outlook is sending before my add-in is finished? Outlook VBA and Custom Forms 5
K Prevent sending Excel files as attachements Outlook VBA and Custom Forms 1
C Prevent Outlook from sending an email with a blank Subject Line Outlook VBA and Custom Forms 3
G To Prevent Malicious Code from running, one or more objects in thi BCM (Business Contact Manager) 2
S To help prevent malicious code from running, one or more objects in this form were not loaded. For m Outlook VBA and Custom Forms 1
A Script to either modify "from" address or prevent a reply being se Outlook VBA and Custom Forms 2
Z Prevent Changes to Custom Form Outlook VBA and Custom Forms 1
D Outlook 2010 Outlook in Windows 10 keeps asking for user name and password repeatedly Using Outlook 14
E Asking user to select multiple options in a list in an email Outlook VBA and Custom Forms 0
icacream Enter your user name and password for the following server. Using Outlook 5
B User defined field for messages with 'me' in the [To], [Cc] line Using Outlook 0
S User Defined Fields adding new value (2) Using Outlook 0
R Creating a user defined function Outlook VBA and Custom Forms 3
M Compile error: User-defined type not defined Outlook VBA and Custom Forms 0
M How to export Voting Results with user names and their responses Outlook VBA and Custom Forms 13
M vCard does not have user-defined fields from my custom contact form (365) Using Outlook 1
C Outlook 2016 Conditional Format for User Defined Field Using Outlook 1
G <mailto:user@domain.com<mailto:user@domain.com<mailto:user@domain.com>>> Using Outlook 5
F MAPI, User Defined Fields and perspective after 20 years Outlook VBA and Custom Forms 0

Similar threads

Top