Open brianto opened 11 years ago
The installer didn't notice that Python 2.7 is installed, even though it already is, and it had two errors.
Two questions:
Thanks for testing :smiley:
So I think I know what is happening. Invoke-Expression
doesn't block until the installer is done. I'll add a Read-Host
right after invoking the installer.
I believe Python was installed via the official Windows installer. And yes, the script continued after the Python installer opened.
Was it Python 3 or Python 2? I believe that Stacy was a freshman, so he may have had only Python 3 installed for CS1. Can you also check to see what path Python was installed in the registry HKLU
?
He had both, we uninstalled both, and then we installed only Python 2.7.
Can you please tell Stacy the command he can use to grab that path?
Test-Path HKLM:\SOFTWARE\Python\PythonCore\2.7
The install path of python should be (Get-ItemProperty HKLM:\SOFTWARE\Python\PythonCore\2.7\InstallPath)."(default)"
The return for the Test-Path HKLM:\SOFTWARE\Python\PythonCore\2.7 is false because windows is derpy
The second line produces an error as well
PS C:\Users\Stacy> (Get-ItemProperty HKLM:\SOFTWARE\Python\PythonCore\2.7\InstallPath)."(default)" Get-ItemProperty : Cannot find path 'HKLM:\SOFTWARE\Python\PythonCore\2.7\InstallPath' because it does not exist. At line:1 char:2
- CategoryInfo : ObjectNotFound: (HKLM:\SOFTWARE...2.7\InstallPath:String) [Get-ItemProperty], ItemNotFo
undException
- FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemPropertyCommand
PS C:\Users\Stacy>
Thanks. That is... strange.
I was hoping to use the registry to test where python is installed because users could install it in different places. I can't test the command python.exe
because it isn't in the path by default (so I believe).
He's on Windows 8.
As Nick said I am on 8 and the registry is C:/Python27
C:\Python27 is the installation location, not the registry.
The prefix for the registry should either be HKLM
or HKCM
. For example...
HKLM:\SOFTWARE\Python\PythonCore\2.7
Sorry I don's see it under HKLM:\SOFTWARE I'm still looking though
Okay found it its... HKLM:\SOFTWARE\Wow6432Node\Python\PythonCore\2.7 Weird
Yeah, strange. I'll add that path to the script.
Thanks :smiley:
No problem tell me when to run it again
I don't want to set up a vm just to test :tongue:
Could someone with a vanilla windows install try running the installer?