I'm trying to use the TieRegistry module for Win32 to update the default
value of a subkey.  I can't find anything in the documentation that
explains how to access default values.

I've tried "(default)", which is what actually appears in the registry
editor, and I've also tried "", "/", "//", and "\\".

For any of these, all I get is this error message:
'Can't call method "SetValue" on an undefined value at Y:
\evinstall\Custom\install.pl line 24.'

Argh!  Anyone know how to do this?  My attempted code follows:

$machKey  = $Registry->Open( "LMachine")
     or  die "Can't open HKEY_LOCAL_MACHINE key\n";
$swKey    = $machKey->Open( "Software" );
$runOnceKey = $swKey->Open( "Microsoft/Windows NT/CurrentVersion/RunOnce/"
);
$succes = $runOnceKey->SetValue( "//", "C:\\WINNT\\system32\\calc.exe");

--------------------
David Munger - ERP Administrator - Thoughtworks
312.373.8521

"There is no reason anyone would want a computer in their home."
- Ken Olson, president, ceo, founder; DEC, 1977


_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to