Prerequisites File Version Check Works for Windows 10 But Did Not Work in Windows 7? - Advanced Installer Community
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Prerequisites File Version Check Works for Windows 10 But Did Not Work in Windows 7?

Hello,

I have set the prerequisites to be checked based on File Version. This is working fine in the Windows 10. But it did not work in Windows 7.

The file path is given similar to this,

Code: Select all

[AppDataFolder]MyProg1\MyProg1.exe
with the following values,

Search depth:
Minimum Version: 1.0.0.0
Maximum Version:

This file will only exist if the prerequisite is already installed. Th installer checks the version number. The file version number is always 1.0.0.0. If the file does not exists then it will install the prerequisite. If found then skip the prerequisite installation. This works fine in Windows 10 but in Windows 7 it tries to install even when the file is found.

I opened the Advanced Installer project file in both Windows 10 and Windows 7, and run the Evaluate function. In both Windows it returns SUCCESS. This means it should not install the prerequisite. But in Windows 7, when the installer was run, it tried to install the prerequisite when the version check file is found.

:?:
K
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Prerequisites File Version Check Works for Windows 10 But Did Not Work in Windows 7?

Hello,

I have tested this scenario, but I was not able to reproduce it. Here is how I did proceed:

- created my own prerequisite setup which contains an .EXE with the following version: 1.0.0.1

- created a wrapper in which I have added the earlier created prerequisite as a pre-install prerequisite

- changed the prerequisite "Criteria" to "File version" and gave the path to where my prerequisite would be installed ("C:\Program Files (x86)\Your Company\prerequisite\sample.exe") with the minimum version of "1.0.0"

- installed the prerequisite first, then I deployed the wrapper which contains the prerequisite and there was no dialog telling me that I need to install the prerequisite (the condition was valid)

- repeated the above step on Windows 7 Professional VM, the same happened

In order for me to investigate this scenario, could you please forward me the following:

- the .AIP file

- a download link for the setup resulted through the build process of the above .AIP file

by e-mail at support at advancedinstaller dot com?

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Prerequisites File Version Check Works for Windows 10 But Did Not Work in Windows 7?

Thanks for your support.

But I think I have figured out the issue. I am running the installer from a standard user account. This file,

Code: Select all

[AppDataFolder]MyProg1\MyProg1.exe
was in the standard user account's folder location. But the installer was run as administrator. So it looked for the folder location of the administrator user account [AppDataFolder] folder location. So it could not find the file. I fixed the issue by using this folder location,

Code: Select all

[CommonAppDataFolder]MyProg1\MyProg1.exe
:)
K
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Prerequisites File Version Check Works for Windows 10 But Did Not Work in Windows 7?

Hello,

Thank you for your followup on this. I am glad you figured this out and fixed the problem and I am sure the provided solution will be useful for further users facing a similar scenario.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Prerequisites File Version Check Works for Windows 10 But Did Not Work in Windows 7?

You are always welcome.

Glad I could help.
:)

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”