[wpkg-users] Registry check condition equals asterix
Paul McGrath
J.P.McGrath at leeds.ac.uk
Mon Nov 24 17:36:53 CET 2008
It is okay I've done the condition checking in a batch file.
if "%Computername:~0,3%"=="CSJ" (goto NAMED) else if
"%Computername:~0,3%"=="MED" (goto NAMED) else if
"%Computername:~0,3%"=="IMM" (goto NAMED) else (goto NOTNAMED)
> -----Original Message-----
> From: wpkg-users-bounces at lists.wpkg.org
> [mailto:wpkg-users-bounces at lists.wpkg.org] On Behalf Of Paul McGrath
> Sent: 24 November 2008 15:33
> To: wpkg
> Subject: [wpkg-users] Registry check condition equals asterix
>
> 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\Activ
> eComputerN
> 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
> --------------------------------------------------------------
> -----------
> wpkg-users mailing list archives >>
> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/wpkg-users
>
More information about the wpkg-users
mailing list