Michael Kahle <[EMAIL PROTECTED]> writes:
> If I select Windows XP, the program dies with "No ProductKey nor
> ProductID!". By simply commenting out line 29 that reads:
>
> die "No ProductKey nor ProductID!";
>
> The program then works as expected for both Windows 2000 and XP.
> Just thought I would point this out. Am I doing something wrong?
> It seems to me that this line should run only if a key is not
> present for 'ProductKey' or 'ProductID'. Thoughts?
Did I forget to mention that the sample code is completely untested? :-)
You have found a bug. Fixed on the Web site; diffs appended.
- Pat
--- advanced.html.~1.4.~ 2003-11-02 22:52:00.000000000 -0500
+++ advanced.html 2003-12-12 15:11:45.000000000 -0500
@@ -442,9 +442,9 @@
if ($os_name =~ /Windows 2000/) {
return 'MY-WINDOWS-2000-KEY';
}
- elsif (defined $u->{'UserData'}->{'ProductID'}) {
+ elsif (defined $u->{'UserData'}->{'ProductKey'}) {
# It is OK for us to return undef as long as there is a
- # ProductID.
+ # ProductKey.
return undef;
}
die "No ProductKey nor ProductID!";
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info