-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web installer fails to find ChocolateyInstaller.psm1 #330
Comments
It has to unpack it from choco, but to do that you need .NET Framework 4.0+ installed and able to be used. The installer attempts this but it may not be able to do so. |
Can you verify this is the issue? |
ping @DarwinJS |
Sorry Rob - been out for a week. I've had it happen several times more. I believe I have isolated it to Windows 7 RTM. When I started with a clean VM with no SP1 - it did not work. After reseting the VM and installing SP1, it did work. Both tests were conducted on 32-bit - I don't have an x64 VM without SP1. I'm not sure how far back you intend to go, but maybe if pre-SP1 is not supported, you might want to indicate the required service pack in documentation and then also have the installer error out with RTM. Although this would likely also affect 2008 R2, hypervisors templates have for 2008 R2, have SP1 applied. I feel like I'm you're "oldest possible versions of Windows and PowerShell" tester - but I promise that that it has not been by design - just circumstance :) D. |
Is it that you have to install sp1 to install .net4? |
I checked that and it seems like RTM should be OK for .NET 4.0 (http://www.microsoft.com/en-US/download/details.aspx?id=17851). Also - if that is the problem, the .NET installer does not seem to be generating an error (but I didn't dig very deep). Are you putting on 4.0? I am running another test to see if .NET is successfully installed. |
Ok, I ran the .NET version detector and it shows 4.0 installed. Folders are there. No errors. The originally reported errors appear immediately after dot net install. I figured out a restart does fix the situation - however, this is not required with any other post-SP1 scenario. Hmm - with a restart fixing it I am thinking "edge case" - not sure if it is worth it for you to add warnings for RTM? D. |
What is this, and where can I get it? 😄 I always end up digging around the folder structure, and looking at registry keys! |
The problem as I understand it is that even though .net 4 is installed, it is not usable without a reboot. Is that a fair assessment? |
Yes, with the qualification that I didn't fully verify that it was .NET Dot net version detector is NOT a .net program itself and can be found I wanted to do a chocolatey package, but it is a redirected URL rather than D. On Mon, Jun 22, 2015 at 2:52 PM, Rob Reynolds [email protected]
|
Thanks, hadn't seen that before. |
I packaged this for chocolatey. I called it "dotnetversiondetector" rather than "netversiondetector" Fyi, On Mon, Jun 22, 2015 at 3:57 PM, Gary Ewan Park [email protected]
|
Noice! |
Actually unless you are going as far back as 2003 and XP (which is not supported) you are not quite there. |
I'm seeing this issue as well within our environment:
This specific machine is Windows 10 - 10.0.10240. |
@johnnyramos |
No idea why Windows 10 would not work out of the box though. |
@johnnyramos You might subscribe to #347 - where we would perform the unpack prior to shipping. |
Closing this as fixed by association with #347. |
Ran the web installer just now and got:
Import-Module : The specified module 'C:\Users\ProtectedAdmin\AppData\Local\Tem
p\chocolatey\chocInstall\tools\chocolateyInstall\helpers\chocolateyInstaller.ps
m1' was not loaded because no valid module file was found in any module directo
ry.
At C:\Users\ProtectedAdmin\AppData\Local\Temp\chocolatey\chocInstall\tools\choc
olateysetup.psm1:46 char:16
er.psm1:String) [Import-Module], FileNotFoundException
ands.ImportModuleCommand
Then a bunch of failures on all follow chocolatey CMDLets used to setup
In the above folder there is only one .PSM1 called chocolateysetup.psm1.
The downloaded Chocolatey.zip does not contain the file either.
The text was updated successfully, but these errors were encountered: