I am attempting to get a files version to know which corresponding file
needs to be installed.
This code works on XP, Vista, and 7, and fails on 2008 Server.

  if not fileordirexists('c:\windows\system32\drivers\acpi.sys') then
  begin
    msgbox('the file c:\windows\system32\drivers\acpi.sys was not found',
mbinformation, mb_ok);
  end
  else
  begin
    msgbox('It works on this OS!', mbinformation, mb_ok);
  end;


FileExists(), FileOrDirExists(), GetVersionNumbers(), and
GetVersionNumbersString() have all failed to return a success for the IF
THEN construct.

Does anyone have some suggestions to solve this?

Tested in both:
Inno Setup Compiler 5.3.9 (a)
and 
Inno Setup Compiler 5.3.10 (a)


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/000801cb4b8e$db4c21b0$91e465...@com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to