[chef] RE: window msi package installation issue


Chronological Thread 
  • From: Adam Edwards < >
  • To:
  • Subject: [chef] RE: window msi package installation issue
  • Date: Tue, 7 Jan 2014 13:40:46 -0800

Premukar, what version of the chef-client are you using? I\xE2\x80\x99ve tried to make this failure occur on 11.8.2, and everything works fine for me. If you\xE2\x80\x99re running Chef 10, or even a version prior to 11.4, I would not expect the HKEY_LOCAL_MACHINE constant that exists in current Chef releases to be present in the chef gem.

\xC2\xA0

-Adam

\xC2\xA0

From: Gontrand, Premkumar [mailto: "> ]
Sent: Monday, January 6, 2014 10:20 PM
To: ">
Subject: [chef] window msi package installation issue

\xC2\xA0

Hi,

\xC2\xA0

\xC2\xA0

I am trying to install msi patch for hpsitescope in window 2008 server I am getting the below error while I am compiling

\xC2\xA0

default.rb

\xC2\xA0

include_recipe "windows::default"

\xC2\xA0

\xC2\xA0

windows_package "S1122130614-11.22.000-WinNT4.0.msi" do

source "D:\\HPSiteScope.11.2\\S1122130614-11.22.000-WinNT4.0.msi"

options "/q"

installer_type :msi

action :install

end

\xC2\xA0\xC2\xA0\xC2\xA0\xC2\xA0\xC2\xA0\xC2\xA0\xC2\xA0\xC2\xA0\xC2\xA0\xC2\xA0\xC2\xA0

\xC2\xA0

Error:

\xC2\xA0

\xC2\xA0 * gem_package[win32-mutex] action install\xE2\x86\x90[0m (up to date)\xE2\x86\x90[0m

Recipe: HPSiteScope::default\xE2\x86\x90[0m

\xC2\xA0 * windows_package[S1122130614-11.22.000-WinNT4.0.msi] action install\xE2\x86\x90[0m\xE2\x86\x90[0m

================================================================================\xE2\x86\x90[0m

\xE2\x86\x90[31mError executing action `install` on resource 'windows_package[S1122130614-11.22.000-WinNT4.0.msi]'\xE2\x86\x90[0m

================================================================================\xE2\x86\x90[0m

\xC2\xA0

\xE2\x86\x90[0m

NameError\xE2\x86\x90[0m

---------\xE2\x86\x90[0m

uninitialized constant Chef::Win32::Registry::HKEY_LOCAL_MACHINE\xE2\x86\x90[0m

\xC2\xA0

\xE2\x86\x90[0m

Resource Declaration:\xE2\x86\x90[0m

---------------------\xE2\x86\x90[0m

# In C:/Users/chef/cookbooks/HPSiteScope/recipes/default.rb

\xC2\xA0

\xC2\xA0 4: windows_package "S1122130614-11.22.000-WinNT4.0.msi" do

\xC2\xA0 5: source "D:\\HPSiteScope.11.2\\S1122130614-11.22.000-WinNT4.0.msi"

\xC2\xA0 6: options "/q"

\xC2\xA0 7: installer_type :msi

\xC2\xA0 8: action :install

\xC2\xA0 9: end\xE2\x86\x90[0m

\xC2\xA0

\xE2\x86\x90[0m

Compiled Resource:\xE2\x86\x90[0m

------------------\xE2\x86\x90[0m

# Declared in C:/Users/chef/cookbooks/HPSiteScope/recipes/default.rb:4:in `from_file'

\xC2\xA0

windows_package("S1122130614-11.22.000-WinNT4.0.msi") do

\xC2\xA0 action [:install]

\xC2\xA0 retries 0

\xC2\xA0 retry_delay 2

\xC2\xA0 cookbook_name :HPSiteScope

\xC2\xA0 recipe_name "default"

\xC2\xA0 source "D:\\HPSiteScope.11.2\\S1122130614-11.22.000-WinNT4.0.msi"

\xC2\xA0 options "/q"

\xC2\xA0 installer_type :msi

\xC2\xA0 package_name "S1122130614-11.22.000-WinNT4.0.msi"

end

\xE2\x86\x90[0m

\xC2\xA0

\xE2\x86\x90[0m

\xC2\xA0

\xC2\xA0

I am new to development and window \xC2\xA0Any one faced the issue similar to that? \xC2\xA0

\xC2\xA0

Is there is anything that need to be along with the code.

\xC2\xA0

Thanks & Regards,

Premkumar

\xC2\xA0




Archive powered by MHonArc 2.6.16.

§