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>
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.
FOLLOW US
Get the latest news in Application Packaging