roteme has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I encountered a strange problem to read some keys from registry.
My program should be run on Win7 32|64 bit and XP 32|64 bit (All options).
I successfully run the following simple code on Win7 64bit:
use Win32::Registry; my $Register = "Software"; my ($hkey, @key_list, $key); $HKEY_LOCAL_MACHINE->Open($Register,$hkey)|| die $!; $hkey->GetKeys(\@key_list); print "$Register keys\n"; foreach $key (@key_list) { print "$key\n"; } $hkey->Close();
But if I create registry key "Software\\Test" NOT UNDER "SOFTWARE\Wow6432Node" the program failed – can read the key
my $Register = "Software\\Test";How can I control the reading from registry for 32 and 64
How can I control to read this key:
Software\\TestAnd How can I control to read this key:
SOFTWARE\Wow6432Node\\TestPlease advice
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading key from registry (32 and 64 Bit)
by BrowserUk (Patriarch) on Feb 29, 2012 at 17:18 UTC | |
by roteme (Acolyte) on Mar 01, 2012 at 07:04 UTC | |
by BrowserUk (Patriarch) on Mar 01, 2012 at 07:14 UTC | |
by roteme (Acolyte) on Mar 01, 2012 at 08:23 UTC | |
by roteme (Acolyte) on Mar 11, 2012 at 15:38 UTC | |
by BrowserUk (Patriarch) on Mar 11, 2012 at 15:41 UTC |