Skip to content
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

Installer needs to check/install .net framework 4.0 immediately #168

Closed
ferventcoder opened this issue Mar 13, 2015 · 7 comments
Closed

Comments

@ferventcoder
Copy link
Member

Otherwise installs may have strange results.

Downloading http://chocolatey.org/7za.exe to C:\Users\vagrant\AppData\Local\Temp\2\chocolatey\chocInstall\7za.exe�
Extracting C:\Users\vagrant\AppData\Local\Temp\2\chocolatey\chocInstall\chocolatey.zip to C:\Users\vagrant\AppData\Local\Temp\2\chocolatey\chocInstall...�
Installing chocolatey on this machine�
Import-Module : The specified module 'C:\Users\vagrant\AppData\Local\Temp\2\chocolatey\chocInstall\tools\chocolateyInstall\helpers\chocolateyInstaller.psm1' was not loaded because no valid module file was found in any module directory.�

At C:\Users\vagrant\AppData\Local\Temp\2\chocolatey\chocInstall\tools\chocolateysetup.psm1:48 char:16�
+   Import-Module <<<<  $installModule -Force�
     + CategoryInfo          : ResourceUnavailable: (C:\Users\vagran...yInstaller.psm1:String) [Import-Module], FileNotFoundException�
     + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand�

The term 'Install-ChocolateyEnvironmentVariable' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of� the name, or if a path was included, verify that the path is correct and try again.�
At C:\Users\vagrant\AppData\Local\Temp\2\chocolatey\chocInstall\tools\chocolateysetup.psm1:136 char:40�
+   Install-ChocolateyEnvironmentVariable <<<<  -variableName "$chocInstallVariableName" -variableValue $null -variableType $environmentTarget�
    + CategoryInfo          : ObjectNotFound: (Install-ChocolateyEnvironmentVariable:String) [], CommandNotFoundException�
    + FullyQualifiedErrorId : CommandNotFoundException�

The term 'Test-ProcessAdminRights' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.�
At C:\Users\vagrant\AppData\Local\Temp\2\chocolatey\chocInstall\tools\chocolateysetup.psm1:137 char:30�
+   if (Test-ProcessAdminRights <<<< ) {�
     + CategoryInfo          : ObjectNotFound: (Test-ProcessAdminRights:String) [], CommandNotFoundException�
     + FullyQualifiedErrorId : CommandNotFoundException�
@ferventcoder ferventcoder self-assigned this Mar 13, 2015
@ferventcoder ferventcoder added this to the 0.9.9.3 milestone Mar 13, 2015
ferventcoder added a commit to ferventcoder/choco that referenced this issue Mar 24, 2015
Attempt to install the .NET Framework 4.0 immediately if it is not
already installed.
ferventcoder added a commit to ferventcoder/choco that referenced this issue Mar 24, 2015
* stable:
  (chocolateyGH-163) Ignore Acl Errors during install
  (chocolateyGH-168) Install .NET Framework 4.0 immediately
ferventcoder added a commit to ferventcoder/choco that referenced this issue Mar 27, 2015
We need to use primitive powershell functions to install the upgraded
.NET framework. We can't use any chocolatey modules because choco
requires .NET 4.0 to unpack them.
ferventcoder added a commit that referenced this issue Mar 29, 2015
A second try seems to work without issue when the first install fails.
ferventcoder added a commit to ferventcoder/choco that referenced this issue Mar 29, 2015
* stable:
  (version) 0.9.9.3
  (doc) update nuspec / changelog for release
  (chocolateyGH-211) Use full path to msiexec
  (chocolateyGH-197) Uninstaller check for registry existence
  (chocolateyGH-167) Get-ChocolateyWebFile create directory
  (chocolateyGH-207) Set up variables for powershell scripts
  (chocolateyGH-202)(log) Enhance formatting escaping
  (chocolateyGH-202) Fix formatting on Noop logging
  (chocolateyGH-208) Do not escape curly braces in scripts
  (chocolateyGH-168) Retry .NET Fx if first install fails
  (chocolateyGH-168) .NET Framework 4.0 install egg/chicken
  (chocolateyGH-207) Some pkgs incorrectly use arguments
@aronovgj
Copy link

problem still there with 0.9.9.4. .net gets installed now though before attempting to install chocolatey
https://gist.github.com/aronovgj/1d05ea5a2972362ffb31

@ferventcoder
Copy link
Member Author

Hmmm, this was working for me. However it probably needs tested in a wider area than a few local systems that I have.

@aronovgj
Copy link

well it still is an non-updated install that i tried it with. after doing all updates it works well.

@ferventcoder
Copy link
Member Author

@aronovgj the ones I'm using don't even have updates installed :)

@aronovgj
Copy link

i can send you the iso i'm using if you want. install it in virtualbox, install chocolatey immediatelly after that.

@aronovgj
Copy link

aronovgj commented Apr 6, 2015

i think i know what causes the error. after .net is installed windows needs a reboot. after that the installation works well.

@ferventcoder
Copy link
Member Author

It doesn't always, but sometimes it does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants