[wpkg-users] Registry check condition equals asterix
Paul McGrath
J.P.McGrath at leeds.ac.uk
Mon Nov 24 16:32:43 CET 2008
Could someone please advise if it is possible to use the registry equals
a wildcard?
I want to compare the registry value 'computername' against a list,
CSJ*, IMM* and others
<package
id="delprofile"
name="Delete redundant profile"
revision="1"
reboot="false"
priority="20"
execute="always">
<check type="registry" condition="equals"
path="HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerN
ame\ComputerName" value="CSJ*" />
<install cmd='cmd /c rd /s /q "c:\documents and settings\csjjpm"
' >
<exit code="2" />
</install>
</package>
It deleted the contents but failed checking after install saying that
the name was CSJ-PC1234 and not CSJ*.
Anyone know how I can use a wildcard?
Thanks
Paul
More information about the wpkg-users
mailing list