[wpkg-users] [Bug 139] inconsistent variable interpolation causing commands to fail
bugzilla-daemon at bugzilla.wpkg.org
bugzilla-daemon at bugzilla.wpkg.org
Sun Jul 5 22:44:47 CEST 2009
http://bugzilla.wpkg.org/show_bug.cgi?id=139
--- Comment #5 from graham <graham at mailinator.com> 2009-07-05 22:44:40 ---
Tested against wpkg 1.1.1.
The interpolation does NOT work for checks of type "registry" - example below.
It DOES work for the spaces-in-path-names, and APPEARS to work for checks on
file paths (though my tests were not so thorough).
The registry check example:
<package id="login-no-show-previous-username"
name="login-no-show-previous-username"
revision="3"
priority="800"
reboot="false">
<variable name="regkey"
value="HKLM\Software\Microsoft\Windows\CurrentVersion\policies\system"/>
<variable name="regvalue" value="DontDisplayLastUserName"/>
<!-- This check will always fail, reporting the literal
(uninterpolated path) does not exist) -->
<check type="registry" condition="equals" path="%regkey%\%regvalue%"
value="1" />
<!-- This check works -->
<check type="registry" condition="equals"
path="HKLM\Software\Microsoft\Windows\CurrentVersion\policies\system\DontDisplayLastUserName"
value="1" />
<install cmd='reg add "%regkey%" /v "%regvalue%" /t REG_DWORD /d "1" /f' />
</package>
--
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the wpkg-users
mailing list