Detecting Vista using Registry - Advanced Installer Community
CarlEMac2008
Posts: 17
Joined: Tue Apr 29, 2008 7:12 pm

Detecting Vista using Registry

Hi All,

My application suite requires .NET Framework 2.0 SP1 and above - my current installer is able to correctly detect the absence of the .NET Framework on XP using customized "Software Prerequisites" based on "Registry value" comparisons.

Is there a stable, similar technique for detecting Vista? Alternately, can system properties (such as VersionNT) be used in <Software Prerequisites><Install Conditions>?

TIA

Carl <|};-)>
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Detecting Vista using Registry

Hi Carl,
Is there a stable, similar technique for detecting Vista?
You can detect the Windows version by using this registry value:

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion
This registry value is 6.0 for Vista.
can system properties (such as VersionNT) be used in <Software Prerequisites><Install Conditions>?
I'm afraid that this is not supported by the EXE bootstrapper because the installer properties are available only during a MSIEXEC process (a Windows Installer installation).

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

Return to “Common Problems”