.NET Prerequisites - 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!

CodeArt
Posts: 3
Joined: Mon Sep 21, 2009 9:11 am
Contact: Website

.NET Prerequisites

Hi,

I am currently building an Enterprise installer for a .NET application, which is compiled against .NET 2.0. In the installer, I have defined .NET as a prerequisite for installation, and it all works swimmingly except for one small problem...

On Windows 2000 (which my application must support), the maximum of .NET that is supported is 2.0 Service Pack 1. However, when you reach Vista, the minimum version is 3.0. I therefore need to be able to define two prerequisites; one for Windows 2000 only (which will install 2.0) and the other for XP and above (which will install 3.5). Unfortunately, I can't find a way of accomplishing this, because as far as I can tell, when you defined a prerequisite, you can only specify the minimum OS for which it is required and not the maximum.

Does anybody know of a workaround this problem? If not, is it going to be any issue that is addressed in a later version?

Thanks,

Ben
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: .NET Prerequisites

Hi Ben,

Here is what you can try:
-- in the Install Conditions tab you can set the minimum OS system as you wish
-- then in the Searches group, under the same tab you can make the following searches:
---- create a new search using the [New] button
---- in the New Search dialog make the following settings:
- Criteria : Registry value with specified content
- Registry Value : "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName"
- Value: for each search you will have one of the following : "XP", "Vista", etc...
- Comparison: Contains

You can create this way searches for all the operating systems higher then Windows 2000. After setting all these conditions make sure that in the Install Conditions tab you select the radio button "Install if all of the above searches fail". If all the searches fail it means that you are under Windows 2000 and the prerequisite can be installed. Please let me know if you have any questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CodeArt
Posts: 3
Joined: Mon Sep 21, 2009 9:11 am
Contact: Website

Re: .NET Prerequisites

Hi Bogdan,

Thank you for your response.

I did actually try doing this myself after I made the post (although I used the Windows version number, which is held in the CurrentVersion value) and found that it did work. However, if you run the installer runs on Vista, you end up seeing both pre-requisites; the one for .NET 2.0 (which the installer is fooled into thinking is present) and the one for .NET 3.5. I was hoping that there would be a more elegant solution; the obvious one being that you can specify a "maximum" OS version for the check so that the pre-requisite is completely hidden, but I assume that there is not a way to do this at present...(?) Perhaps this could be turned into a feature request for the product? In other regards, I have been extremely impressed with the product and what it can do.

Many thanks,

Ben
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: .NET Prerequisites

Hi,

This option is already on our TODO list and will be available in a future version of Advanced Installer. If you have other questions please let me know.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CodeArt
Posts: 3
Joined: Mon Sep 21, 2009 9:11 am
Contact: Website

Re: .NET Prerequisites

Hi Bogdan,

Ok, it's great to hear that it's on your TODO list - I think it would greatly add to the product. I'll assume that there is no other solution (apart from possibly having two seperate installers), so will cross my fingers that this new feature makes it into a version soon!

Regards,

Ben

Return to “Common Problems”