MattFW
Posts: 18
Joined: Fri Jul 06, 2007 4:54 am

App Certification Kit failing on 'OS Version Checking Test'

We've put together an installer recently for a new version of our product and we're having some problems with the App Certification Kit failing during the OS Version Checking test.

Code: Select all

<REQUIREMENT NUMBER="5" TITLE="OS version checking test" RATIONALE="Applications must not perform version checks for equality (== 5.1). If you need a specific feature, check whether the feature is available. If you need Windows XP, check for Windows XP or later (>= 5.1), This way, your detection code will continue to work on future versions of Windows. Driver installers and uninstall modules should never check the OS version.">
      <TEST INDEX="6" NAME="Proper OS version checking" DESCRIPTION="Perform proper OS version checking during installation." EXECUTIONTIME="00h:00m:04s.96ms">
        <RESULT><![CDATA[FAIL]]></RESULT>
        <MESSAGES>
          <MESSAGE TEXT="Failed to enable HighVersionLie for setup install.exe. Please check if AppVerifier is installed." />
        </MESSAGES>
      </TEST>
    </REQUIREMENT>
We have been informed that something in the installer is calling GetVersion which apparently causes the test to be failed. I have confirmed that AppVerifier was installed.

The installer has three areas that we implemented that check the OS version:

1. In Launch Conditions we limit the installer so it cannot run on Win95, NT4 or Win2k.

2. In Organisation we have 4 DLLs, only one of which is to be installed based on OS. For these DLLs we have Conditions that check:

(NOT VersionNT64) AND (VersionNT < 600)
( VersionNT64 ) AND ( VersionNT64 < 600 )
( NOT VersionNT64 ) AND (VersionNT >= 600)
(VersionNT64) AND VersionNT64 >= 600

3. In Custom Actions, to support registration of the DLLs on 64 bit systems we have two actions with conditions:

(VersionNT64) AND VersionNT64 >= 600
(VersionNT64) AND VersionNT64 < 600


I include these because of a note somewhere that suggested comparing version directly to a value rather than comparing it using > or < could cause failure. I did examine the MSI with Orca and found a single direct comparison to versionnt (AI_RemoveExternalUIStub) but I don't know if that could be the cause.

Any information you have would be fantastic, thanks, we're trying to complete WinQual setup.

I guess the question is whether there is anything in the installer system that you know of that would causing the failure in the App Cert test.
MattFW
Posts: 18
Joined: Fri Jul 06, 2007 4:54 am

Re: App Certification Kit failing on 'OS Version Checking Te

And an update to this - It looks like it related to one specific computer, the installer is actually fine. It's possible that App Verifier was interfering with the installer file when the Windows Certification system was running.

Sorry for the false positive!
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: App Certification Kit failing on 'OS Version Checking Te

No problem Matt, glad you got it this sorted.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”