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

Tyler Gustafson tgustafson at solacom.com
Fri Aug 26 08:45:24 PDT 2016

Hi Bruce,

I believe the [WindowsFolder] gets you where you need to go and then you're specifying an exact path after so I don't think you could end up in C:\Windows\SysWOW64 based on that but my memory is pretty fuzzy.
Do you have access to a failing system to check if the hal.dll exists on that machine in the system32 folder? You could also try manually creating a dummy hal.dll in the SysWOW64 folder and if things start working you'll know that's your issue.

Good luck,

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Bruce Cran
Sent: August-26-16 11:32 AM
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/
Scanned by Total Defense Email Cloud Security http://cloud.totaldefense.com

More information about the wix-users mailing list