Atlas
Posts: 30
Joined: Sun Mar 16, 2008 11:08 am

Launch condition for older OSes only

There may be an easy way to do this, but I could not find it:

For Software Prerequisites you can set a Launch Condition for install to only take place if the OS is at or above a certain version, but I would like to do the opposite, and install a prerequisite if your OS is below a certain version.

The reason for this is that the latest .NET will not work on W2K. I've figured out how to make the proper Installer Condition for .NET 3.5 to only install on Windows XP and above. But in addition to this, I'd like .NET 2.0 to only install on Windows 2000. That way users with newer operating systems will get the latest .NET, while users of older operating systems will get a less desirable version, but one that still works with our software.

If there's a way to do this already and I just missed it, please let me know. Thanks for your consideration.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Launch condition for older OSes only

Hi,
I'd like .NET 2.0 to only install on Windows 2000.
This can be done by using a custom search for the Install Conditions of the prerequisite. The search can use this registry entry:

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion
This registry value will be 5.1 for XP and 5.0 for Windows 2000. Note that this is the actual Windows version.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Atlas
Posts: 30
Joined: Sun Mar 16, 2008 11:08 am

Re: Launch condition for older OSes only

I finally got around to implementing your suggested solution, but the results are a bit of a problem. On a W2K machine it works exactly like I want now. It has something like this:

.NET Framework 2.0______Required: any. Found: nothing_____________Download

But on XP/Vista machines it has this undesirable behavior:

.NET Framework 3.5______Required: any. Found: nothing_____________Download
.NET Framework 2.0______Required: any. Found an acceptable version______Skip


What I don't like is that:

1. It lists two versions of .NET, when all I want on XP/Vista is for it to list version 3.5

2. It claims that .NET 2.0 is already installed even though it isn't. This may cause users to get confused and think they can skip this step.

Is there a way to avoid these problems?

Thanks!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Launch condition for older OSes only

Hi,
It lists two versions of .NET, when all I want on XP/Vista is for it to list version 3.5
Please note that the prerequisites wizard will show all prerequisites you specified in your project. If a prerequisite is detected (through its launch condition), it will be unchecked.
It claims that .NET 2.0 is already installed even though it isn't
This happens because of the install condition of the prerequisite. Currently Advanced Installer doesn't support a way of disabling a prerequisite in certain situations. However, we have this improvement on our TODO list and it will be available in a future version.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Atlas
Posts: 30
Joined: Sun Mar 16, 2008 11:08 am

Re: Launch condition for older OSes only

Thanks for the explanation.
cosmin wrote:However, we have this improvement on our TODO list and it will be available in a future version.
That sounds great! I will look forward to this useful feature.
jcw
Posts: 1
Joined: Sat Aug 23, 2008 9:36 pm

Re: Launch condition for older OSes only

What would be the time frame for this feature - when can we expect it?

Thanks,
Justin
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Launch condition for older OSes only

Hi Justin,

I'm afraid that I cannot give you an ETA for now because we are currently working on other features. However, I increased its priority and we will try to implement it in one of the future versions.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”