jtilander / niftyplugins

Visual Studio productivity plugins
MIT License
40 stars 24 forks source link

P4INSTROOT can be located under a different registry key #77

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Try any p4 command from Visual Studio on an x64 box, you'll get a "could not 
find p4v exe installed in perforce directory" error box.

Looking at the code, it appears that the plugin should also check for 
P4INSTROOT under "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Perforce\Environment"

> string installRoot = GetRegistryValue("SOFTWARE\\Perforce\\Environment", 
"P4INSTROOT", true); ;

Original issue reported on code.google.com by francois...@gmail.com on 2 Feb 2012 at 11:00

GoogleCodeExporter commented 9 years ago
Sounds like a win32/x64 problem. Could you outline which p4v you've installed? 
The 64 bit or the 32 bit one? (I'm suspecting the 64 bit one?)

Original comment by jim.tila...@gmail.com on 17 Apr 2012 at 4:59

GoogleCodeExporter commented 9 years ago
The x64 version

Original comment by francois...@gmail.com on 17 Apr 2012 at 3:14

GoogleCodeExporter commented 9 years ago
I've encountered a similar issue this morning.  I've discovered that my 
P4INSTROOT was not corrrectly set.  I was pointing to C:\Program Files 
(x86)\Perforce\ instead of C:\Program Files\Perforce\.

Manually fixing the register fixed the issue.

Original comment by francois...@gmail.com on 7 Jun 2012 at 6:46

jtilander commented 9 years ago

I think this one was fixed.