Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Win32::Registry not working

by Athanasius (Archbishop)
on Nov 20, 2012 at 03:15 UTC ( [id://1004652]=note: print w/replies, xml ) Need Help??


in reply to Win32::Registry not working

From Win32::Registry:

NOTE: This module provides a very klunky interface to access the Windows registry, and is not currently being developed actively. It only exists for backward compatibility with old code that uses it. For more powerful and flexible ways to access the registry, use Win32::TieRegistry.

Have you tried using Win32::TieRegistry instead?

Athanasius <°(((><contra mundum

Replies are listed 'Best First'.
Re^2: Win32::Registry not working
by samwyse (Scribe) on Nov 20, 2012 at 23:18 UTC
    I had the same problem after switching to Win32::TieRegistry. I get this on the server:
    D:\>perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread [...] D:\>test.pl path SOFTWARE\Microsoft\Microsoft SQL Server subkeys: values: 100\, 90\, DACFramework\, DACProjectSystem\, RefCount\, Servic +es\, SharedManagementObjects\, SqlPubWiz\, TSqlLanguageService\ Can't read SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names key: + The system could not find the environment option that was entered
    However, running regedit and exporting the registry gives me this:
    Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance N +ames] [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance N +ames\OLAP] "MSSQLSERVER"="MSAS10_50.MSSQLSERVER" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance N +ames\RS] "MSSQLSERVER"="MSRS10_50.MSSQLSERVER" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance N +ames\SQL] "MSSQLSERVER"="MSSQL10_50.MSSQLSERVER"
    Upgrading to ActiveState Perl 5.16.1 (the most current version), fixed everything. Curiously, the archname above says "x86" but i downloaded and installed the 64-bit version. I'm now wondering if the 32-bit and 64-bit versions of the Win32 registry APIs see different things.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1004652]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-20 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found