We have Select disks and I have the following in my site\config.pl which
does the trick for us:
$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/) {
return '12345-12345-12345-12345-12345';
}
elsif ($os_name =~ /Windows Server 2003/) {
return '12345-12345-12345-12345-12345';
}
return undef;
};
$u->{'UserData'}->{'ProductID'} =
sub {
my $media_obj = Unattend::WinMedia->new
($u->{'_meta'}->{'OS_media'});
my $os_name = $media_obj->name ();
if ($os_name =~ /Windows 2000/) {
return '12345-12345-12345-12345-12345';
}
elsif (defined $u->{'UserData'}->{'ProductKey'}) {
# It is OK for us to return undef as long as there is a
# ProductKey.
return undef;
}
die "No ProductKey nor ProductID!";
};
HTH,
Mark.
> -----Original Message-----
> From: Steven Piercy [mailto:[EMAIL PROTECTED]
> Sent: 22 March 2005 22:07
> To: Ryan
> Cc: [email protected]
> Subject: Re: [Unattended] Keyless CD's
>
>
> I bet you will have to mod install.pl (think thats the one) since it
> parses to look for or prompts - though, it may be config.pl. Or you
> might try dropping a 'null' value ( like " ") in an unattend.txt file
> under your site folder - worth a try.
>
> Anyone know which script req's the existence of product key -
> its gotta
> be the one that parses the answer file... but im just too
> lazy to look
> it up right now.
>
> -sp
>
> Ryan wrote:
>
> >My problem is that we don't have a key. We are enrolled in the Select
> >program and recieved a CD that doesn't request a key. I checked the
> >unattend.txt file on the CD, and there is no winnt.sif file.
> I have put in
> >12345-12345-12345-12345-12345 into the unattend.txt file,
> but i still get
> >prompted by install.pl. Everything installs fine. I am just
> trying to get
> >rid of the prompt for simplicity sake.
> >
> >
> >
> >>Ryan wrote:
> >>
> >>
> >>
> >>
> >>>Our Windows 2000 CD's don't prompt for a Key. How do i make it not
> >>>prompt for one? I tried leaving the ProductKey blank in the
> >>>unattnded.txt, and also entered a dummy number. I tried
> searching the
> >>>archives, but wasn't able to find anything that helped. Is this
> >>>possible?
> >>>
> >>>--Ryan
> >>>
> >>>
> >>>
> >>>
> >>>-------------------------------------------------------
> >>>This SF.net email is sponsored by: 2005 Windows Mobile Application
> >>>Contest
> >>>Submit applications for Windows Mobile(tm)-based Pocket PCs or
> >>>Smartphones
> >>>for the chance to win $25,000 and application
> distribution. Enter today
> >>>at
> >>>http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
> >>>_______________________________________________
> >>>unattended-info mailing list [email protected]
> >>>https://lists.sourceforge.net/lists/listinfo/unattended-info
> >>>
> >>>
> >>>
> >>>
> >>>
> >>if you dont want it to prompt then you can either enter the
> key into the
> >>unattended.txt or you can modify the config.pl script to
> automatically
> >>enter it for you
> >>
> >>
> >>
> >
> >
> >
> >
> >
> >-------------------------------------------------------
> >This SF.net email is sponsored by: 2005 Windows Mobile
> Application Contest
> >Submit applications for Windows Mobile(tm)-based Pocket PCs
> or Smartphones
> >for the chance to win $25,000 and application distribution.
> Enter today at
> >http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
> >_______________________________________________
> >unattended-info mailing list
> >[email protected]
> >https://lists.sourceforge.net/lists/listinfo/unattended-info
> >---
> >[This E-mail scanned for viruses by Declude Virus]
> >
> >
> >
> >
> ---
> [This E-mail scanned for viruses by Declude Virus]
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: 2005 Windows Mobile
> Application Contest
> Submit applications for Windows Mobile(tm)-based Pocket PCs
> or Smartphones
> for the chance to win $25,000 and application distribution.
> Enter today at
> http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
> _______________________________________________
> unattended-info mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/unattended-info
>
--
This e-mail message may contain confidential or privileged information.
Recipients are requested to preserve this confidentiality and to advise
the sender immediately of any error in transmission.
Any views/opinions expressed in this email are that of the author and
may not reflect the views of Salamis Group - www.salamisgroup.com
-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
_______________________________________________
unattended-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-info