Mert
Posts: 50
Joined: Mon Jun 15, 2009 4:00 pm

Prerequisite install conditions

Hi while I test my setup project on vista the install condition for .NET Framework 2.0 SP2 prerequisite install condition fails and tries to install the prerequisite even it is installed on the system before this does not happen on Windows XP I check for the following registry keys:

Code: Select all

HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727\1033\Version ->  "2.2.30729"
HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727\1033\SP -> "2"
HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727\1033\Install -> "1"
Also I install SQL Server 2005 Express SP2 as a prerequisite with a specific instance name and even if the sql server is installed but not the instance I want I want it to be installed so I check for the following key:

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\<My Instance Name>\MSSQLServer\CurrentVersion\CurrentVersion -> "9.00.3042.00"
But this condition fails too and on all of the systems I tested not just vista.

Anyone can help me on this?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Prerequisite install conditions

Hi,

The first condition is incorrect because it tests the version number to “2.2” and such a version of .NET doesn't exists.

Please note that AI has predefined prerequisites for .NET Framework 2.0 SP2 in the Software Prerequisites tab. Here is a How To.

The second condition appears to be correct. Could you please send us the .aip file to support at advancedinstaller dot com so we can investigate it.
Also I install SQL Server 2005 Express SP2 as a prerequisite with a specific instance name and even if the sql server is installed but not the instance I want I want it to be installed so I check for the following key:
This condition seems to be correct. Please send us the .aip file to support at advancedinstaller dot com so we can investigate it.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mert
Posts: 50
Joined: Mon Jun 15, 2009 4:00 pm

Re: Prerequisite install conditions

I've send the files.

But for the first key it does exists in registry like that so I thought it would be the version when the sp2 is installed isn't it true?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Prerequisite install conditions

Hi,

I'm not sure if this should be used. We are using other detection methods.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Prerequisite install conditions

Hi,

For .NET Framework try using the predefined prerequisites from the Software Prerequisites tab.

For SQL Server 2005 Express SP2 the condition seems to be correct. Can you please check the registry key existence before and after the prerequisite installs.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mert
Posts: 50
Joined: Mon Jun 15, 2009 4:00 pm

Re: Prerequisite install conditions

I've tested the project with predefined conditions and they don't work either also I've checked the registry for sql server and key does not exists before the install and created after the install and when I reinstall key is there with the exact same value I check for
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Prerequisite install conditions

Hi,

I'm not sure what do you mean by "they don't work either". Can you please give me more details about how you are testing the prerequisites.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mert
Posts: 50
Joined: Mon Jun 15, 2009 4:00 pm

Re: Prerequisite install conditions

I've made the test using the default conditions created by advanced installer for .NET Framework 2.0 SP2 that controls product codes but it's not working either when I run my setup on a computer with the .NET Framework 2.0 SP2 installed the installed tries to install it again from prerequisites
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Prerequisite install conditions

Hi,

Could you please send us the modified .aip file. Also can you please provide us the URL from where you've downloaded the .NET Framework that is installed on your machine.

Also, after you've launched the installer for the first time and installed the prerequisites that are being required try launching it again to see if the searches still fail.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mert
Posts: 50
Joined: Mon Jun 15, 2009 4:00 pm

Re: Prerequisite install conditions

I've send the files and the url.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Prerequisite install conditions

Hi,

We've tested the Prerequisite Conditions with the .NET version from the URL you've provided us and the conditions are fulfilled.

After you've launched the installer for the first time and installed the prerequisites that are being required try launching it again to see if the searches still fail. Please let us know what happens.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mert
Posts: 50
Joined: Mon Jun 15, 2009 4:00 pm

Re: Prerequisite install conditions

OK I solved the .NET Framework thanks but I still can't solve the SQL Server 2005 Express it still installs on a machine that already has it.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Prerequisite install conditions

Hi,
I still can't solve the SQL Server 2005 Express it still installs on a machine that already has it
I noticed that in your path for the search you use :

Code: Select all

HKEY_LOCAL_MACHINE\...
Please note that Advanced Installer uses the short version :

Code: Select all

HKLM\...
Try using "HKLM" instead of "HKEY_LOCAL_MACHINE" and let us know if the problem still persists.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”