"Jay Lee" <[EMAIL PROTECTED]> writes:

> Maybe unattend.txt should be specific to each os directory in future
> releases?

No need.  Something like this in Z:\site\config.pl should do what you
want:

======================================================================
use warnings;
use strict;

$u->{'UserData'}->{'ProductKey'} =
    sub {
        my $media_obj = Unattend::WinMedia->new ($u->{'_meta'}->{'OS_media'});
        my $os_name = $media_obj->name ();
        if ($os_name =~ /Windows XP Home/) {
            return simple_q ("Enter license key for $os_name:");
        }
        elsif ($os_name =~ /Windows XP/ {
            return 'MY-XP-KEY';
        }
        elsif ($os_name =~ /Windows Server 2003/) {
            return 'MY-SERVER-2003-KEY';
        }
        return undef;
    };

1;
======================================================================

Replace MY-XP-KEY with your volume license key.  I am assuming that
the string "Windows XP Home" appears in the OS name of the Home
edition; I do not have a copy myself.

 - Pat



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to