If the file search path is really restricted to the
System folder as you say, a file search isn't actually too bad. You said system
path in your first post, not system folder, so that may be causing some
confusion with the PATH environment variable.
Phil Wilson
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Suraj Barkale
Sent: Monday, October 09, 2006 11:47 PM
To: Bob Arnson
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Check if a dll file is present on target machine
Thanks for the prompt reply Bob but if user has 'Oracle Instant Client' (which is nothing but a few dlls put in a folder in system path), it will be impossible to detect only using registry. And as you say searching all drives is a no-no.I have decided to code a CustomAction dll which calls LoadLibrary() in Kernel32.dll.
Is there a custom action which lets me call a function in Kernel32.dll or any other preinstalled dll and use returned value for condition?
On 10/9/06, Bob
Arnson <[EMAIL PROTECTED]> wrote:
Suraj Barkale wrote:
> I want to know if I can search for a file in system path.
You can use FileSearch to find a particular file with a version range
but it doesn't support searching just the path. The alternative is to
search a tree, such as ProgramFilesFolder, but that won't find
directories installed elsewhere. You can tell the AppSearch action to
search all drives on the system but your users won't thank you for that
brute force approach. Your best bet is to find from Oracle any registry
entries or other data indicating version info and install location.
--
sig://boB
http://bobs.org
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users