PDA

View Full Version : Installing a file dependent on the version of Windows


OrlandoPat
07-12-2007, 04:20 PM
Hey everyone, I've searched through the forums and help and whatnot for a solution to my problem and I'm stuck.

In my installation, I need to copy a file (GDIPlus.dll) to the application directory if the version of Windows is prior to XP.

I can get the version of Windows through MSI - if the VersionNT property is less than 501 I need to install the file.

Unfortunately, I can't seem to figure out how to do that in Setup Factory.

Any ideas?

JXBURNS
07-12-2007, 04:44 PM
On the FILE PROPERTIES, got to the COMPONENT tab, EDIT COMPONENT and in the CONDITION box you can test (for example) VERSION9x = 410 (for Win98SE) or VERSIONNT < 501 (as you mention) for NT systems less than XP.

Rgds John