-
Notifications
You must be signed in to change notification settings - Fork 77
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
Silently fails installing IIS-ASPNET45 on Win2012 due to 64-bit DISM issues #9
Comments
The full text for reference:
|
The provider just needs to use the sysnative dism command to fix this, because Chef is running under a 32-bit Ruby on Windows. Here's how we do it: https://github.com/opscode-cookbooks/windows/blob/master/libraries/windows_helper.rb#L34 And then we use locate_sysnative_cmd("dism.exe") to get the right dism.exe. |
Alternatively, we can switch to using the "batch" resource rather than "execute" inside the actions - doing this on a fork at the moment & seems to work (no PR yet as incomplete). Unfortunately Mixlib::Shellout doesn't seem to have a similar ability, but isn't so crucial. |
Attempting to install IIS-ASPNET45 via Chef recipe on a freshly-bootstrapped stock Windows 2012 AMI.
I get the following text in the log:
The entire run is at http://pastebin.com/hXn14VPg and shows the command leading to that error at line 43.
The text was updated successfully, but these errors were encountered: