Hello,
I would like to check if during the start the organization is set to a
specific value then let the ProductKey value be set to the apropriate
value, matching the organization. I am planning to do it with
/site/config.pl, so I put in these lines:
>$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/) && ($u->{'UserData'}->{'OrgName'}=~
> /myorganization/)){
> return 'my product key';
> }
> return undef;
> };
I works in a way. I sets the ProcuctKey if the organization is
matching, but if not, it make it undef, as it seemed. But this way I
would miss the goal, since because this part in the config.pl, there
is no question for the productkey at all. This is not the best :)
Is there a good way to reach my goal? As I can figure out (just
learning perl... sorry), if I change the order of the questions in the
install.pl file (first the org and some times later the ProductKey),
maybe it would work. If I do so, I would lose this modification after
an update of the install.pl (dosbin). There must be a solution, but
now I dont know. Can anyone help me out?
--
Best regards,
FwdTmp mailto:[email protected]
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
unattended-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-info