thielk
Posts: 2
Joined: Mon Apr 06, 2009 5:39 pm

Seperate Drivers for XP and Vista within one Package

Hi all,
I want to make a package where depending on the OS Version a driver will be installed.
My Proble is how can I make sure that the right driver will be installed.
I tried to put both it within "software Perequisites", but cannot tell the installer to install this driver on OS 9x, ME, XP and another on Vista, because it is always a "upwards" condition. So I see only the possibility to make an single EXE File which decides if the driver should be installed or not.
Or has anybody an idea, how to solve this problem in a more simple way?

best regrads
Thiel Kohpeiß
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Seperate Drivers for XP and Vista within one Package

Hello,

You can add each driver as a prerequisite, and for each one, on the "New Prerequisite" dialog->"Install Conditions" tab create a registry search for the following registry value:

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName
The search criteria should be "Registry Value with specified content". Note that HKLM is used instead of HKEY_LOCAL_MACHINE. In the value field place a string, for example "Microsoft Windows XP" in case the prerequisite needs to be installed only on windows XP. Select "Different than" as the comparison.
Add a new prerequisite for each of your drivers. Thus the specific driver for each operating system will be installed.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”