scrouchman
Posts: 12
Joined: Fri Aug 07, 2009 1:42 pm

Xp 64 specific prerequisite

Hi,

Is it possible to look for a prerequisite specifically for XP 64? I know I can look for XP 64 onwards but its only required on XP 64 and as its a 46mb download I dont want users to have to get it unless its required.

To be more specific, theres a bug in .Net 2.0 on XP 64 that seems to prevent a managed 3rd party 32bit dll from loading. This works fine under xp 32bit and also on all flavours of vista and will work correctly on xp 64bit if .Net 2 SP1 is installed. What I really want is a prerequisite of .Net 2 on all systems and architectures except xp 64 which would need .Net 2.0 SP1

Thanks,

Steve.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Xp 64 specific prerequisite

Hello,

What you can do is set your prerequisite from the Prerequisites page->Software Prerequisites tab:
- uncheck the first two check boxes and leave only "Windows NT 64-bit from" checked, with "Windows XP 64-bit" option selected
- on the "New Prerequisite" window that pops up, go to "Install Conditions" and add this new condition and press OK:

Code: Select all

Criteria: "Registry value with specified content"
Registry Value: "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion"
Value: 5.1
Comparison: Greater than
- this will exclude Windows Vista 64-bit and Windows 7 64 bit as target operating systems for your prerequisite
- make sure "Install if all of the above searches fail" is selected

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
scrouchman
Posts: 12
Joined: Fri Aug 07, 2009 1:42 pm

Re: Xp 64 specific prerequisite

This does not seem to work correctly, the test for Greater than and Less Than always fails (V7.1.3).

Our build machine is a windows 2003 server, the CurrentVersion key is 5.2. I used the exact settings supplied so that it should pass the check however when testing it in AI it always fails no matter what the value is.

Steve.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Xp 64 specific prerequisite

Hello,

It seems "Less Than" and "Greater Than" only accept integer values as comparison terms.
You can instead use this condition:

Code: Select all

Criteria: "Registry Value"
Registry Value: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion
Minimum: 5.2
Maximum: <leave blank>
Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”