Launch conditions / prerequisites - Outlook 2007 or better - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jwest
Posts: 56
Joined: Tue Dec 27, 2005 12:14 am

Launch conditions / prerequisites - Outlook 2007 or better

Sorry if I'm confusing prerequisites with launch conditions. I'm guessing they're similar except prerequisites will attempt to install the missing pieces and launch conditions will just complain.

I have 2 setup projects: one for x86 and one for x64.

My app requires .NET 4 full or client profile and Microsoft Outlook version 2007 or Outlook 2010 x86 or Outlook 2010 x64. In other words, .NET 4 and Office Outlook 2007 or better.

I'd like to set the following prerequisites:

#1 .NET 4 full or .NET 4 client profile must be installed.
If neither is found install .NET 4 full (or ask the user if they want full or client)

#2 PIAs for Office 2007 or PIA's for Office 2010
If niether is found, install the PIAs for Office 2007 (or ask the user if they want 2007 or 2010

I'd like the following launch condition:

Office Outlook 2007 or Office Outlook 2010 x86 or Office Outlook 2010 x64

How do I do with with AI 8.2?

Thanks!
jwest
Posts: 56
Joined: Tue Dec 27, 2005 12:14 am

Re: Launch conditions / prerequisites - Outlook 2007 or bett

I guess I confused things with the fact that there's an x64 dimension as well so I thought I'd restate what prerequisites / launch conditions I need for each separate AI project.

----------------------------------------------

Project #1: x86

I'd like to set the following prerequisites for the x86 project:

#1 .NET 4 full or .NET 4 client profile must be installed.
If neither is found install .NET 4 full (or ask the user if they want full or client)

#2 PIAs for Office 2007 or PIA's for Office 2010
If niether is found, install the PIAs for Office 2007 (or ask the user if they want 2007 or 2010

I'd like the following launch condition for the x86 project:

Office Outlook 2007 or Office Outlook 2010 x86

---------------------------------------------------

Project #2: x64

I'd like to set the following prerequisites for the x64 project:

#1 .NET 4 full or .NET 4 client profile must be installed.
If neither is found install .NET 4 full (or ask the user if they want full or client)

#2 PIAs for Office 2010

I'd like the following launch condition for the x64 project:

Office Outlook 2010 x6 4


How do I do this with with AI 8.2?


Thanks again.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Launch conditions / prerequisites - Outlook 2007 or bett

Hello,

If you set global prerequisites in both your projects, the users will be prompted with a list of the prerequisites' status before the installation starts. This way they can choose which prerequisites they want to install. By default, all missing prerequisites will be marked for install.

The prerequisites you need are predefined in Advanced Installer and if you choose the above approach all you need to do is set them as global. Here is how to add them from the Prerequisites page in both your projects:
.NET 4 Prerequisites.jpg
.NET 4 Prerequisites.jpg (31.02 KiB) Viewed 6268 times
Office PIA Prerequisites.jpg
Office PIA Prerequisites.jpg (30.78 KiB) Viewed 6267 times
The launch conditions you need are also predefined and you can add them from the Launch Conditions page in both your projects:
Office PIA Launch Conditions.jpg
Office PIA Launch Conditions.jpg (64.55 KiB) Viewed 6267 times
For the basics of adding prerequisites or launch conditions, you may also want to follow our Professional tutorial:
http://www.advancedinstaller.com/user-g ... ional.html

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jwest
Posts: 56
Joined: Tue Dec 27, 2005 12:14 am

Re: Launch conditions / prerequisites - Outlook 2007 or bett

Thanks. I'm concerned that going the global prerequisite route will result in users being prompted to confirm their prerequisites even when they have everything they need to proceed (ex: they have .NET4Client but the prerequisite will see that .NET4Full is missing and ask them to confirm its installation even though we're good to go with .NET4Client) I dont want to bother them with these nasty details if I can help it.

So it seems that I'm still stuck. I think it's because prerequisites are ANDed where I want some of them OR'd:

(.NET4Client Or .NET4Full) And (Office2007PIAs Or Office2010PIAs)

If I could do this in Launch conditions I'd be happy but I can only do one of:

.NET4Client And Outlook >= 2007 And Office2007PIAs
- This won't work for Outlook 2010 as the Office2010PIAs will be installed so Office2007PIAs will be missing. It also won't work if the have .NET4Full.

.NET4Client And Outlook >= 2010 And Office2010PIAs
- This won't work for Outlook 2007 or with .NET4Full

.NET4Full And Outlook >= 2007 And Office2007PIAs
- This won't work for Outlook 2010 as the Office2010PIAs will be installed so Office2007PIAs will be missing. It also won't work if the have .NET4Client.

.NET4Full And Outlook >= 2010 And Office2010PIAs
- This won't work for Outlook 2007 or with .NET4Client

It gets worse if I add Office 2003 into the mix and this is why I have stayed away from using Launch Conditions (beyond Windows versions) and Prerequisites. I was able to get away with before we moved our app to .NET but that's history now and I need them now.

If you added a "Minimum Version" option to the Launch Conditions for .NET and the Office PIAs, like you have done for Office applications I'd be set:

.NET => 4ClientProfile And Outlook >= 2007 And OfficePIAs >= 2007

I'd also consider doing some sort of custom dll that I could include with the installer but that seems too complicated and time consuming given I'm not fluent in C++/MFC/ATL etc.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Launch conditions / prerequisites - Outlook 2007 or bett

Hello,
even when they have everything they need to proceed (ex: they have .NET4Client but the prerequisite will see that .NET4Full is missing and ask them to confirm its installation even though we're good to go with .NET4Client)
You can add the searches from both related prerequisites( copy -> paste ) into a single one( most probably the full installation one ). This way, for example if the user has either the client OR the full installation, the prerequisite will not be installed on the target machine.

In case you want the user to decide like you initially posted, you can set the prerequisites as feature based and use UI public properties to condition their installation.

Here is an article to help you with this.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jwest
Posts: 56
Joined: Tue Dec 27, 2005 12:14 am

Re: Launch conditions / prerequisites - Outlook 2007 or bett

Thanks.

I've only got the Pro version so that article doesn't really help.

I've given up on prequisites again (I've given up every every year since 2005!) I was able to get away with it until we moved to .NET.

The problem is that your predefined launch conditions don't support the deployment capabilities I need for MS Office and .NET:

Outlook 2003 or better AND Excel 2003 or better (Can only choose Outlook OR Excel)

Outlook 2003 PIAs or better AND Excel 2003 PIAs or better (Can only choose Outlook PIAs OR Excel PIAs, can not choose minimum version)

.NET 4 full OR .NET 4 client

This is all too complicated for me :(

Return to “Common Problems”