1

Closed

Exception calling "Install"

description

Hiya,
Trying to get a custom packate up and working based off "example". I've taken most of the header, including:

Install-WindowsUpdate

(I've got more obviously). I packaged up successfully and have been running my package. After two reboots, I'm seeing the following exception:

Checking for helper updates...
Chocolatey (v0.9.8.20-alpha2) is installing AppServer and dependencies. By installing you accept the license for AppServer and each dependency you are installing.
______ AppServer v6.6.6 ______
Checking for updates...
2
Updates found
*
Windows Internet Explorer 9 for Windows Server 2008 R2 for x64-based Systems
already downloaded
*
Windows Malicious Software Removal Tool x64 - December 2012 (KB890830)
already downloaded
Downloading complete
Beginning to install
Exception calling "Install" with "0" argument(s): "Exception from HRESULT: 0x80240023"
At C:\Chocolatey\lib\BoxStarter.Helpers.0.1.9\Install-WindowsUpdate.ps1:40 char:9
  • $result = $Installer.Install()
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : ComMethodTargetInvocation
PS C:\Windows\system32>


Probably related, I then manually ran Windows Update and the dialog indicated that the version of Windows Update needed to be upgraded. So perhaps the older version has a different API?

I manually completed the windows update and removed this Install-WindowsUpdate call from my script (probably makes more sense to run it after I have installed everything I need)

Great tool BTW, will save me hours in setting up VMs (I hope!)
Closed Mar 25, 2013 at 6:22 AM by mwrock
Fixed in Boxstarter.WinConfig v1.0. Install-WindowsUpdate now takes a -AcceptEula switch.

comments

mwrock wrote Dec 15, 2012 at 2:07 PM

That error code indicates a eula that has not been accepted. Looks like the API does allow you to accept eulas. I should add a switch argument allowing users to pass -AcceptEulas and then accept these.

Thanks for reporting!