OS dependent driver installation (INF) - 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!

darwin
Posts: 4
Joined: Wed Jun 27, 2007 10:50 am

OS dependent driver installation (INF)

Hi,

I would like to install an appropriate driver for a card reader within my installation process. I have to distinguish four types of drivers according to the underlying operating system (2000/XP/Server2003, XP-64, Vista-32, Vista-64).

I basically know the msi properties (VersionNT, VersionNT64, and WindowsBuild) and I know that I have to set some kind of custom action. Unfortunately the drivers are not MSI files but INF-files (+ the driver files *.sys).

I did not manage to set an INF file as custom action and I did not find a way to distinguish the os on the "Drivers"-page (Project Details -> Drivers)

Is there a way to install drivers based on INF files in an os-dependent way?

thx
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
Is there a way to install drivers based on INF files in an os-dependent way?
Here is how you can do this:
- you have multiple drivers, each named according to the target operating system
- you add the INF files in the "Drivers" page
- in the "Organization" page you place each driver into a feature
- you condition the installation of these features by using the VersionNT property

For example: for a driver DRIVER_XP.INF (for Windows XP) you can use the condition VersionNT=501

You can see the available values for the VersionNT property here:
http://msdn2.microsoft.com/en-us/library/aa370556.aspx

If you have any other questions, don't hesitate to ask.

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

Return to “Common Problems”