Re: FW: readregistry issue

Demian Brecht <[email protected]> Wed, 4 Apr 2012 11:54:59 -0700
Newsgroups gmane.comp.windows.dotnet.nant.user
Message-ID <0066FF93CF95BD499291CB28100592102D34D5A128@SEA-EXMBX-01.internal.popcap.com>
Thanks for the follow up.

I had included the hive in one of my many variations in trying to get it to=
 work (it defaults to "LocalMachine" according to the docs, so I assumed th=
at I wouldn't need to set it explicitly).

According to regedit, the path is correct: HKEY_LOCAL_MACHINE\SOFTWARE\Pyth=
on\PythonCore\2.7\InstallPath. =


I've now tested this on two 64bit machines and both fail with the same erro=
r. I also tried it with a nightly build and the error message was a little =
different:

Registry Path Not Found! - key=3D'SOFTWARE\Python\PythonCore\2.7\InstallPat=
h\';hive=3D'Microsoft.Win32.RegistryHive[]';

This message concerns me a bit.. Do I somehow explicitly have to set the hi=
ve to be 64bit?

Thanks again,
Demian

-----Original Message-----
From: Ryan Boggs [mailto:[email protected]] =

Sent: April-04-12 11:31 AM
To: Demian Brecht
Cc: [email protected]
Subject: Re: [NAnt-users] FW: readregistry issue

I should note that I tested on a Win32 machine.  I am not sure if the reg p=
ath is different on a Win64 system for Python.

Thanks,
Ryan

On Wed, Apr 4, 2012 at 11:29 AM, Ryan Boggs <[email protected]> wrote:
> I'm not sure where the "3D" prefixes came from in your original =

> posting but this is working for me (just tested):
> <readregistry property=3D"Python.Dir"
> key=3D"SOFTWARE\Python\PythonCore\2.7\InstallPath\" hive=3D"LocalMachine"
> />
>
> I am hoping that the above line isn't mangled in the email. =A0Don't =

> forget to include the hive in <readregistry>
>
> Thanks,
> Ryan
>
> On Wed, Apr 4, 2012 at 11:22 AM, Demian Brecht <[email protected]> wrote:
>> Sorry, should have also mentioned that the task call is:
>>
>> <readregistry verbose=3D"true" =

>> key=3D"SOFTWARE\Python\PythonCore\2.7\InstallPath\" =

>> property=3D"installPath" />
>>
>> -----Original Message-----
>> From: Demian Brecht
>> Sent: April-04-12 11:17 AM
>> To: '[email protected]'
>> Subject: [NAnt-users] readregistry issue
>>
>> I'm sure that there's something silly that I'm missing here..
>>
>> I'm trying to query the registry (Windows 7 64bit) to get my Python inst=
all path. For some reason, I'm getting:
>>
>> Registry Path Not Found! - key=3D3D'SOFTWARE\Python\PythonCore\2.7\Insta=
llPath\';hive=3D3D'LocalMachine'
>>
>> However, if I replace my key with the sample in the documentation, all w=
orks fine. I've rebooted since installing Python (not sure whether or not t=
hat makes a difference). What am I missing here?
>>
>> Thanks in advance,
>> Demian
>>
>>
>> ---------------------------------------------------------------------
>> --------- Better than sec? Nothing is better than sec when it comes =

>> to monitoring Big Data applications. Try Boundary one-second =

>> resolution app monitoring today. Free.
>> http://p.sf.net/sfu/Boundary-dev2dev
>> _______________________________________________
>> NAnt-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/nant-users


---------------------------------------------------------------------------=
---
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second =

resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev