I was trying to search a driver file in [SystemFolder]\drivers\ and I used the line below
<util:FileSearch Path="[SystemFolder]\drivers\my_Driver.sys" Result="exists" Variable="myDriver" />
The driver file that I am searching is always installed in C:\Windows\System32. So, will using the SystemFolder property work even if I am installing on a x64 platform? Does the SystemFolder property transform its value based on the Windows platform being installed on?
This article should answer your question entirely. Here's the excerpt: