Hi Iso,
the default behaviour is to open a key with read/write access. Normal users
do not have write access to the HKLM/Software key. When you open the key,
specify the required access:
$hkey = $Registry->Open("LMachine/SOFTWARE/", {Access=>"KEY_READ"});
Regards,
Mark
> -----Original Message-----
> From: Ismail Mutlu [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 3:05 AM
> To: [EMAIL PROTECTED]
> Subject: TieRegistry question.
>
>
> Hello All,
> The following script works for Administrator and power users,
> but it gives the following error when I run it as a regular user:
>
> The system could not find the environment option that was
> entered at D:\recallit\bin\reg_test.pl line 4.>
> Needles to say I am a newbe.
> Thanks for your help,
>
> Cheers
>
> Iso
>
> ####-- reg_test.pl--####
> use strict;
> use Win32::TieRegistry ( Delimiter=>"/", ArrayValues=>0 );
> $Registry->Delimiter("/"); # Set delimiter to "/".
> my $swKey= $Registry->{"HKEY_LOCAL_MACHINE/SOFTWARE/"} || die $^E;
>
> ####--------------------####
>
> _______________________________________________
> Perl-Win32-Admin mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs