Detect different pre-requisite conditions on XP and Vista - 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!

electricpocket
Posts: 8
Joined: Tue Feb 20, 2007 6:03 pm

Detect different pre-requisite conditions on XP and Vista

Hi,

I need to detect different registry entries to see if a pre-requisite is installed on XP and Vista

On XP I need to check:-
HKLM\SOFTWARE\Microsoft\ActiveSync\ is >= 4.2

on Vista I need to check.
HKLM\SOFTWARE\Microsoft\Windows Mobile Device Center enumeration is present.

Is there anyway of doing this in a single aip, so that I dont have to build 2 separate installers for XP and Vista? Could I use custom actions or searches in some way ( I have tried and failed so far).

Thanks

Steve.

PS. There is a shared registry value that I hoped I could use:-
(HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\CEAPPMGR.EXE). but this is a file path and AI doesnt like it (it always thinks its not present) :(
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Steve,

The next version ( 4.8 ) of Advanced Installer scheduled for release at the beginning of the next week will offer support to add multiple conditions for a prerequisite. Also will offer support to get the file path form a registry value (HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\CEAPPMGR.EXE) and compare its version.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
electricpocket
Posts: 8
Joined: Tue Feb 20, 2007 6:03 pm

Fantastic - thanks :)

Return to “Common Problems”