MorganCabral / sse-library

A CMS driven library book management system built on top of Django.
10 stars 2 forks source link

Test windows install script #13

Open brianto opened 11 years ago

brianto commented 11 years ago

I don't want to set up a vm just to test :tongue:

Could someone with a vanilla windows install try running the installer?

StacyJCarlos commented 11 years ago

The installer didn't notice that Python 2.7 is installed, even though it already is, and it had two errors.

https://gist.github.com/a9da6cb7b5542205efff

brianto commented 11 years ago

Two questions:

Thanks for testing :smiley:

brianto commented 11 years ago

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.

nickserv commented 11 years ago

I believe Python was installed via the official Windows installer. And yes, the script continued after the Python installer opened.

brianto commented 11 years ago

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?

nickserv commented 11 years ago

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?

brianto commented 11 years ago

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)"

StacyJCarlos commented 11 years ago

The return for the Test-Path HKLM:\SOFTWARE\Python\PythonCore\2.7 is false because windows is derpy

StacyJCarlos commented 11 years ago

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

PS C:\Users\Stacy>

brianto commented 11 years ago

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).

nickserv commented 11 years ago

He's on Windows 8.

StacyJCarlos commented 11 years ago

As Nick said I am on 8 and the registry is C:/Python27

brianto commented 11 years ago

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
StacyJCarlos commented 11 years ago

Sorry I don's see it under HKLM:\SOFTWARE I'm still looking though

StacyJCarlos commented 11 years ago

Okay found it its... HKLM:\SOFTWARE\Wow6432Node\Python\PythonCore\2.7 Weird

brianto commented 11 years ago

Yeah, strange. I'll add that path to the script.

Thanks :smiley:

StacyJCarlos commented 11 years ago

No problem tell me when to run it again