Howto prevent installation on Windows7 or Itanium - 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!

Agron
Posts: 16
Joined: Fri Aug 29, 2008 10:57 pm

Howto prevent installation on Windows7 or Itanium

I need to prevent beta testers from filing reports for unsupported Windows flavors like Windows7 and Windows Server 2008 as well as unsupported processors like Itanium.

Now, I do support some Windows Server 2008 for 32-bit Intel and 64-bit AMD but not the one for Itanium. And I do not support Windows7 at all on any CPU.

BTW, how to detect Microsoft's version of HomeServer?

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

Re: Howto prevent installation on Windows7 or Itanium

Hi Agron,

Please note that your package can be installed on a machine which uses an Itanium processor only if it uses the "64-bit package for Intel64 (Itanium) processor" package type in the Install Parameters page. Therefore, you can use any other option in order to prevent installation on a machine which uses an Itanium processor.

The Windows version can be detected by using this registry value:

Code: Select all

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\CurrentVersion
This value can be retrieved by using a search. The property of this search can then be used as a custom launch condition in the "Prerequisites" page. For example, if the property of your search is WINDOWS_VER, the custom launch condition can look like this:

Code: Select all

WINDOWS_VER <= "6.0"           "This package cannot be installed on Windows 7 or Windows Home Server".
Windows Home Server has the version 6.0.1800, therefore it will be covered by the above launch condition.

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

Return to “Common Problems”