We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ZombiesWithCoffee
Posts: 4
Joined: Fri Sep 26, 2014 6:03 pm

File Install Condition for Driver

I have created a File Version install prerequisite to check for the version of a driver file. I have tried several versions, but when I click on the Evaluate button, I get a False condition.

Code: Select all

C:\Windows\System32\drivers\RealScan.sys
[Windows]\System32\drivers\RealScan.sys
[SystemFolder]\drivers\RealScan.sys
If I move the file up to the Windows directory and try again, it works fine.

Code: Select all

C:\Windows\RealScan.sys

Why does the file version check fail to work once a file is in the System32 directory?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: File Install Condition for Driver

Hello and welcome to Advanced Installer forums,

This is happening because the folder location is retrieved differently on 64-bit platforms than on 32-bit platforms, in your case the [SystemFolder] property will be resolved to C:\Windows\SysWOW64 path.

By default the prerequisite uses 32-bit locations on a 64-bit machine, so in order to overcome this you can enable the Use 64-bit locations when evaluating conditions on a 64-bit machine option from the Install Conditions tab of the prerequisite.

You can also take a look on the Advanced Installer Package Types article which may be useful to you.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ZombiesWithCoffee
Posts: 4
Joined: Fri Sep 26, 2014 6:03 pm

Re: File Install Condition for Driver

Thanks Dan!

That definitely fixed my problems!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: File Install Condition for Driver

You're welcome,

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”