Windows 10: PowerShell PackageManagement (OneGet) - Install Apps from Command Line

Discus and support PowerShell PackageManagement (OneGet) - Install Apps from Command Line in Windows 10 Tutorials to solve the problem; Well, y'all enjoy the meeting. Skype for Business won't work, the Web App won't work, nothing works at all. Discussion in 'Windows 10 Tutorials' started by Charlie, Oct 31, 2014.

  1. Wynona Win User

    PowerShell PackageManagement (OneGet) - Install Apps from Command Line


    Well, y'all enjoy the meeting.

    Skype for Business won't work, the Web App won't work, nothing works at all.
     
    Wynona, Apr 22, 2016
    #91
  2. Wynona Win User

    I'm in; had to change to IE and it's really a piece of crap. Takes an act of congress to get to the end of this.
     
    Wynona, Apr 22, 2016
    #92
  3. simrick Win User
    I can hear background noises - could tell you made it! ;-)
     
    simrick, Apr 22, 2016
    #93
  4. Wynona Win User

    PowerShell PackageManagement (OneGet) - Install Apps from Command Line

    Well, shoot. What kind of background?
     
    Wynona, Apr 22, 2016
    #94
  5. AndreTen Win User
    Hi to all, I will attend for short. Thanks for your time!
     
    AndreTen, Apr 22, 2016
    #95
  6. Wynona Win User
    Hi Andre. I finally made it! I see you're there too.
     
    Wynona, Apr 22, 2016
    #96
  7. Kari Win User
    To make it easier for you to search available application packages (installers) to be installed with PowerShell PackageManagement module, here's the complete list as of yesterday as a PDF file (file size 1.5 MB): PS Package Management - Packages 24-APR-2016.pdf
     
  8. Ztruker Win User

    PowerShell PackageManagement (OneGet) - Install Apps from Command Line

    Kari, I was working through this today and ran into 1 problem which was easy to fix.
    Step 3.2 says
    This did not happen for me. I had to add NuGet separately.

    I opted to install ChocolateyGUI as a test and it installed fine but doesn't work at all. Looking at the ChocolateyGUI web page it says to do a choco update ChocolateyGUI. The choco command is not recognized by Powershell even though Chocolatey is installed:

    Windows PowerShell
    Copyright (C) 2015 Microsoft Corporation. All rights reserved.

    Code: PS C:\Users\rrkurtz> Get-Packageprovider Name Version DynamicOptions ---- ------- -------------- Chocolatey 2.8.5.130 SkipDependencies, ContinueOnFailure, ExcludeVersion, ForceX86, PackageSave... msi 3.0.0.0 AdditionalArguments msu 3.0.0.0 NuGet 2.8.5.204 Destination, ExcludeVersion, Scope, Headers, FilterOnTag, Contains, AllowP... PowerShellGet 1.0.0.1 PackageManagementProvider, Type, Scope, InstallUpdate, PackageManagementPr... Programs 3.0.0.0 IncludeWindowsInstaller, IncludeSystemComponent[/quote]
    Code: PS C:\Users\rrkurtz> choco choco : The term 'choco' 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 line:1 char:1 + choco + ~~~~~ + CategoryInfo : ObjectNotFound: (choco:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException[/quote] Is there a better place to ask about this since it doesn't really have anything to do with PowerShell PackageManagement. Or is there a way to do the update via PowerShell PackageManagement instead of chocolatey?

    This is the error I get:


    PowerShell PackageManagement (OneGet) - Install Apps from Command Line [​IMG]
     
    Ztruker, Apr 24, 2016
    #98
  9. Kari Win User
    I am working on updating both tutorial and video, it will be done today / tonight.

    One change in PacketManagement (OneGet) is that NuGet is no longer installed when Chocolatey package provider is installed. Instead it will now be automatically installed when you install first package using PacketManagement, from Chocolatey or any other provider. However, this is something you as a user don't have to think; installing NuGet is and remains automatic, it's just done at different stage now. A user don't have to (and is recommended not to) install NuGet manually.

    Chocolatey as an indepently running stand-alone package manager and repository is not the same thing as Chocolatey package provider in PowerShell Package Management. All choco install xxx, choco update xxx and other choco commands refer to stand-alone Chocolatey, not PowerShell PacketManagement.

    Chocolatey package manager can be run on Windows Vista and later, whereas PowerShell PacketManagement using Chocolatey repositories requires Windows Management Framework V5 which was first presented in Windows 10 and Windows Server 2016.

    Quoted note from the very beginning of this tutorial:


    PowerShell PackageManagement (OneGet) - Install Apps from Command Line [​IMG]
    Note If you are not familiar with package managers I recommend you read first the short Chocolatey package manager tutorial at our sister site Windows Eight Forums as an introduction to this tutorial: Chocolatey - Install Apps from Command Line. Although written for Windows 8 the tutorial can be used without any modifications in Windows 10.

    In your example case now you need to install this independent Chocolatey package manager, then run the choco update ChocolateyGUI from Chocolatey.
     
  10. Ztruker Win User
    Got it, thanks Kari. Great stuff.
     
    Ztruker, Apr 25, 2016
  11. Wynona Win User
    Question:

    I have installed a number of packages on Build 14379 with PowerShell, but Irfanview refuses to install. I have tried irfanview, IrfanView, etc., but it still refuses. I've checked the spelling, and have it right.

    I've checked my whole computer, including apps and features, add/remove apps, and it's not showing up as installed.

    I have gone to the Official IrfanView site and downloaded it, but don't want to install until a resolution has been found; that is if there is one.
     
    Wynona, Jul 1, 2016
  12. Kari Win User
    For the first, you can always check the availability of packages on Chocolatey site with typing the following URL:

    Code: Chocolatey Gallery | Packages matching IrfanView[/quote]
    Replace IrfanView in above URL with package you are looking for. Screenshot below, #1 (green dot) indicates that the package is available, a red one would have meant the package is not available at the moment. The correct package name to be used in PowerShell PackageManagement is the one marked with #2:
    PowerShell PackageManagement (OneGet) - Install Apps from Command Line [​IMG]


    The above screenshot shows you have used correct package name.

    I decided to see if I can find out the reason for your install issue. Tried to install IrfanView to see the error message, got it. It indicates application incompatibility or faulty package ("Process exited with non-successful exit code").

    Because I saw that the first part of install process worked, PowerShell downloading the installer. I went to %temp%\Chocolatey folder where installers are temporary stored, opened IrfanView folder and run installer manually getting below message:
    PowerShell PackageManagement (OneGet) - Install Apps from Command Line [​IMG]

    (Click to pop-out, click again to enlarge.)

    Looks as if the currently available IrfanView package is not compatible with Windows 10, at least x64 version of latest Insider build.
     
Thema:

PowerShell PackageManagement (OneGet) - Install Apps from Command Line

Loading...
  1. PowerShell PackageManagement (OneGet) - Install Apps from Command Line - Similar Threads - PowerShell PackageManagement OneGet

  2. issues when trying to reinstall windows apps from Powershell command line

    in Microsoft Windows 10 Store
    issues when trying to reinstall windows apps from Powershell command line: Hi, I typed:PS C:\Users\Administrateur> Get-AppxPackage -AllUsers Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$$_.InstallLocation\AppXManifest.xml"}i got this:https://justpaste.it/65huii could not post the whole output on this forum since my message was more...
  3. issues when trying to reinstall windows apps from Powershell command line

    in Windows 10 Gaming
    issues when trying to reinstall windows apps from Powershell command line: Hi, I typed:PS C:\Users\Administrateur> Get-AppxPackage -AllUsers Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$$_.InstallLocation\AppXManifest.xml"}i got this:https://justpaste.it/65huii could not post the whole output on this forum since my message was more...
  4. issues when trying to reinstall windows apps from Powershell command line

    in Windows 10 Software and Apps
    issues when trying to reinstall windows apps from Powershell command line: Hi, I typed:PS C:\Users\Administrateur> Get-AppxPackage -AllUsers Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$$_.InstallLocation\AppXManifest.xml"}i got this:https://justpaste.it/65huii could not post the whole output on this forum since my message was more...
  5. How to turn off a SPECIFIC MONITOR from the command line or powershell?

    in Windows 10 Gaming
    How to turn off a SPECIFIC MONITOR from the command line or powershell?: How to turn off a SPECIFIC MONITOR from the command line or powershell? The following turns off ALL MONITORS... NOT what I need.powershell.exe -Command "Add-Type '[DllImport\"user32.dll\"]public static extern int SendMessageint hWnd,int hMsg,int wParam,int lParam;' -Name a...
  6. How to turn off a SPECIFIC MONITOR from the command line or powershell?

    in Windows 10 Software and Apps
    How to turn off a SPECIFIC MONITOR from the command line or powershell?: How to turn off a SPECIFIC MONITOR from the command line or powershell? The following turns off ALL MONITORS... NOT what I need.powershell.exe -Command "Add-Type '[DllImport\"user32.dll\"]public static extern int SendMessageint hWnd,int hMsg,int wParam,int lParam;' -Name a...
  7. Opening windows store apps from command line

    in Windows 10 Software and Apps
    Opening windows store apps from command line: How do I open windows store apps like Hulu from the command prompt? 44674
  8. "Reset Hub" - any command line or powershell equivalent?

    in Windows 10 Drivers and Hardware
    "Reset Hub" - any command line or powershell equivalent?: Hi experts, I have a USB device that will malfunction from time to time and I've found by pressing the 'Reset Hub' button to disable/enable the Root Hub to which this device is connected, things will go back to normal once again. [img] The thing is, I'd like to see...
  9. setting default apps from command line?

    in Windows 10 Software and Apps
    setting default apps from command line?: in win7, after installation and setting the correct file associations, the correct program would start upon double clicking in win10 however, it popups wanting you to set a ?default app?. ive seen this happen for klite codec pack, firefox, utorrent i do unattended...
  10. Capture network usage from command line or powershell?

    in Windows 10 Network and Sharing
    Capture network usage from command line or powershell?: I know you can see what applications are using how much data in a given period of time by going to Start -> Settings -> Network & Internet -> Data Usage, then clicking the Usage Details option to bring up a list. Does anyone know if there's a way to output this list at...