<div dir="ltr">Hi,<div><br></div><div>I'm not sure what the expected behaviour for recursively expanded package variables is but I'm seeing something strange here with my Adobe Reader package.</div><div><br></div><div>
Here is a snippet from my package:</div><div><br></div><div><div> <package id="adobe-reader"</div><div> name="Adobe Reader"</div><div> revision="%PKG_VERSION%T2"</div>
<div> reboot="false"</div><div> priority="1"></div><div><br></div><div> <variable name="PKG_VERSION" value="%PKG_BASE_VERSION%.%PKG_PATCH_END%"/></div>
<div> <variable name="PKG_BASE_VERSION" value="11.0"/></div><div> <variable name="PKG_PATCH_START" value="01"/></div><div> <variable name="PKG_PATCH_END" value="05"/></div>
</div><div><br></div><div>The wpkg install command handles this correctly:</div><div><br></div><div><div>Uninstall entry 'Adobe Reader XI (11.0.05)' matches expression 'Adobe Reader XI.*'.</div><div>Found version of '%PKG_NAME%.*' at HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-1</div>
<div>033-7B44-AB0000000001}: 11.0.05</div><div>Comparing to expected version: %PKG_VERSION%.</div><div>Comparing version: '11.0.05' <=> '11.0.05'.</div><div>Comparing uninstall version '11.0.05' to expected version '11.0.05' using condition 'versionequalto' returned 0.</div>
<div>Uninstall version check for package '%PKG_NAME%.*' returned true for operation type versionequalto.</div></div><div><br></div><div>However, a /query:m command thinks that Reader is not installed:</div><div><br>
</div><div><div>Adobe Reader</div><div> ID: adobe-reader</div><div> Revision: %PKG_BASE_VERSION%.%PKG_PATCH_END%T2</div><div> Action: Installation pending</div><div> Reboot: false</div>
<div> Execute: -</div><div> Priority: 1</div><div> Status: Installed</div></div><div><br></div><div>Is it possible the query command does not use the same checking code as the install command? Is this a bug?</div>
<div><br></div><div>Thanks,</div><div>Dafydd</div></div>