[wix-users] Burn: util:FileSearch failing with "did not find path" for file in system32 dir

Bob Arnson bob at firegiant.com
Fri Aug 26 09:59:53 PDT 2016

I've used Path="[SystemFolder]wintrust.dll" successfully.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Bruce Cran
Sent: Friday, 26 August, 2016 11:32
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Burn: util:FileSearch failing with "did not find path" for file in system32 dir

I'm having problems with a util:FileSearch I have in my bootstrapper (using WiX I'm trying to get the version of hal.dll in
system32 to determine if KB2919355 is installed on Windows 8.1 or Server 
2012 R2.   My search line is:

<util:FileSearch Path="[WindowsFolder]\system32\hal.dll" 
Variable="halversion" Condition="VersionNT = v6.3" 
Result="version"/><bal:Condition Message="$(var.ProductName) requires update 2919355 (Windows 8.1/Server 2012 R2 Update) to be installed.">VersionNT <> v6.3 OR halversion >= v6.3.9600.17031</bal:Condition>

It appears to work on my development machine, but on others I'm getting:

File search: wfsEDED24F86FDF2799851099A46A77E3D4, did not find path: 

I'm just getting back into Windows installer work after a break from it for a few months, so I can't remember: should that work, or will I be hitting the SysWow64 directory via redirection? If it is being redirected, it there any way to avoid that and check for a file in the
system32 directory?

Bruce Cran

WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

More information about the wix-users mailing list