Notice the differences between the two.  ProductKey has 'and' and ProductID
has 'or'.

> # Compute product Key from inventory sheet, if possible.
> $u->push_value ('UserData', 'ProductKey',
>      sub {
>          my $media_obj = Unattend::WinMedia->new
($u->{'_meta'}->{'OS_media'});
>          my $os_name = $media_obj->name ();
>          $os_name =~ /Windows 2000/
>              and return undef;
> <snip>

If os_name contains 'Windows 2000' then (and) return undef.

> # Compute product ID from inventory sheet, if possible.
> $u->push_value ('UserData', 'ProductID',
>      sub {
>          my $media_obj = Unattend::WinMedia->new
($u->{'_meta'}->{'OS_media'});
>          my $os_name = $media_obj->name ();
>          $os_name =~ /Windows 2000/
>              or return undef;
> <snip>

os_name must contain 'Windows 2000' or return undef.

-Shad



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to