Grega
Posts: 24
Joined: Tue May 12, 2009 2:26 pm

Install on Vista with .net framework prerequisite

Hi,

I created a setup for our application a while ago with a .net framework 2.0 SP1 prerequisite there was no problem till now because all our customers were using XP. Now I got an info from our customer which tried to run setup on Vista and it didn't work.
Because there is a .Net Framework 2.0 SP1 prerequisite it tries to install it and as I have a .net framework 2 sp2 included in the setup it doesn't work since 2.0 SP2 is only for XP. On Vista there is a .net framework 3.5 installed, why does installer still try to install .net 2.0.

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

Re: Install on Vista with .net framework prerequisite

Hi Grega,

Unfortunately older Advanced Installer versions had some bugs related with the .NET Framework 2.0 Service pack detection. These bugs were fixed in the 7.0 version. A solution would be to rebuild the package using a newer Advanced Installer version.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Grega
Posts: 24
Joined: Tue May 12, 2009 2:26 pm

Re: Install on Vista with .net framework prerequisite

hey Cosmin,

Thank you for this,
I do have a advanced installer up to date (7.2.1) but that package was probably done with the old 6.9 one.
I will send them the rebuild with new version.

Regards,
Grega
Grega
Posts: 24
Joined: Tue May 12, 2009 2:26 pm

Re: Install on Vista with .net framework prerequisite

Hi,

I am still having problems with this, I rebuilt my package with 7.2.1.
I can uncheck the .NET framework 2.0 SP1 in the prerequisites dialog, and it continues with installation without problem...although when installing on XP if there is .NET framework 2.0 SP1 installed it doesn't show this dialog at all?!

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

Re: Install on Vista with .net framework prerequisite

Hi Grega,
I can uncheck the .NET framework 2.0 SP1 in the prerequisites dialog, and it continues with installation without problem
This is the normal behavior. Prerequisites are optional and the user can uncheck the ones he doesn't want to install. If you want a prerequisite to be mandatory you can use the Force installation of this prerequisite option in the "Edit Prerequisite" dialog.
although when installing on XP if there is .NET framework 2.0 SP1 installed it doesn't show this dialog at all?!
Does this happen for a .NET Framework 2.0 SP2 prerequisite? If so, can you please check if there are other .NET Framework versions installed on the machine? If there aren't, can you please send us the .AIP with the problem to support at advancedinstaller dot com so we can investigate it?

Note that you may need to remove and re-add the prerequisite in your project in order to include the fix in your installer.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Grega
Posts: 24
Joined: Tue May 12, 2009 2:26 pm

Re: Install on Vista with .net framework prerequisite

Hi, Cosmin,
cosmin wrote:
Does this happen for a .NET Framework 2.0 SP2 prerequisite? If so, can you please check if there are other .NET Framework versions installed on the machine? If there aren't, can you please send us the .AIP with the problem to support at advancedinstaller dot com so we can investigate it?

Note that you may need to remove and re-add the prerequisite in your project in order to include the fix in your installer.
I removed the .NET framework 2.0 SP1 prerequisite and added the .NET framework 2.0 SP2 and the same error occurred:
Image

As you can also see on the photo the .net framework 3.5 SP1 and 1.0 are installed on the machine (Vista OS).

Regards,
Grega
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Install on Vista with .net framework prerequisite

Hi Grega,

Currently the predefined conditions of the .NET Framework 2.0 SP2 prerequisite don't cover Vista. This improvement will be included in the next release. Until then you can try adding this search in the Install Conditions tab:
- make sure that the "Install if all of the above searches fail" option is selected
- create a "Registry value with specified content" search
- set the "Registry Value" field to:

Code: Select all

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentBuildNumber
- set the "Value" field to:

Code: Select all

3790
- in the "Comparison" combo select "Greater than"
- save the changes and rebuild the project

This way the prerequisite will be marked for installation only on Windows XP and Windows 2003.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
naghicalin
Posts: 3
Joined: Thu Oct 29, 2009 3:15 pm

Re: Install on Vista with .net framework prerequisite

Hi,
We have the same problem... I have added .NET 2.0 SP 2 as prerequisite and on Vista will always try to download it...
Do you have any estimated time when the next release will come out? Will it work also on Windows 7? Will it work on Vista, Windows 7 x64 versions?
Thanks in advanced.
Calin Naghi.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Install on Vista with .net framework prerequisite

Hello,

I am afraid we do not have an ETA for the next version's release. However the fix will fully support Windows7 and Vista.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
JonathanQ
Posts: 6
Joined: Fri Feb 01, 2008 10:26 pm

Re: Install on Vista with .net framework prerequisite

I looked through the version history and did not see anything specifically about this in the 7.5 release.

Can anyone confirm the issue has been fixed? We have an old license (6.4.1) and are running in to similar requirements. I need to know if purchasing a new license will resolve our issues or not (otherwise I can't justify the cost to management).

Our requirement is: We need .NET 2 SP1 to be installed. I can put a prerequisite for it in there, however on Vista - it will send them to the download page for .NET 2 SP1 which is not compatible with Vista.

I would like to be able to provide a link (we are NOT bundling the framework..we are having the user download) to the appropriate page to download the required framework.

On Windows XP and 2000 - .NET 2.0 SP1
On Windows Vista and 7 - .NET 3.5 SP1

.NET 3.5/.NET 2.0 (non SP1) does not contain a fix to the framework that our application requires. So we need to ensure they have at least SP 1 installed for the correct .NET framework. Is this possible with the new version?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Install on Vista with .net framework prerequisite

Hello Jonathan,

I am posting the email reply my colleague Bogdan sent you, for use as future reference for other people who might encounter this difficulty:
Here is what you can try in the latest version of Advanced Installer.

Add the prerequisites desired in the Software Prerequisites tab and set from what operating systems onwards do you want them to be installed.

Now go to "Options" tab and make sure the prerequisite has set the radio button "Feature based prerequisite..."

After doing this for the desired prerequisites go to Organization page, here you will see a feature for each prerequisite added to the installation package.

What you have to do is to set the "Condition install level" of each feature based on the value of the properties VersionNT and VersionNT64.
http://www.advancedinstaller.com/user-g ... ialog.html

Here is an example of using the values of these properties:
http://www.advancedinstaller.com/user-g ... stall.html
Following the above suggestion will enable your installer to download the appropriate version of .NET for the operating system the installer is running on.

Do let us know if there is anything else we can assist you with.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”