Sitescope package installation issue on window


#1

Hi,

Cookbook Name:: HPSiteScope

Recipe:: default

Copyright 2013, YOUR_COMPANY_NAME

All rights reserved - Do Not Redistribute

include_recipe “windows::default”

directory “d:/HPSiteScope.11.2” do
action :create
end

directory “d:/HPSiteScope.11.2/HPSiteScope.11.22” do
action :create
end

cookbook_file “d:/HPSiteScope.11.2/HPSiteScope_11.20_setup.exe” do
cookbook "HPSiteScope"
action :create
not_if { ::File.exists?(“d:/HPSiteScope.11.2/HPSiteScope_11.20_setup.exe”) }
end

cookbook_file “d:/HPSiteScope.11.2/ovinstallparams.ini” do
cookbook "HPSiteScope"
action :create
not_if { ::File.exists?(“d:/HPSiteScope.11.2/ovinstallparams.ini”) }
end

remote_directory “d:/HPSiteScope.11.2/packages” do
source 'packages.11.20’
recursive true
action :create
end

execute " HPsitescope" do
print " Installation of site scope package started"
command "start /wait d:/HPSiteScope.11.2/HPSiteScope_11.20_setup.exe -i silent"
end

cookbook_file “d:/HPSiteScope.11.2/HPSiteScope.11.22/HPSiS1122_11.22_setup.exe” do
cookbook "HPSiteScope"
action :create
not_if { ::File.exists?(“d:/HPSiteScope.11.2/HPSiteScope.11.22/HPSiS1122_11.22_setup.exe”) }
action :create
end

remote_directory “d:/HPSiteScope.11.2/HPSiteScope.11.22/packages” do
source 'packages.11.22’
recursive true
action :create
end

execute " upgrading sitescope to 11.22" do
print " Installation of site scope package started"
command "start /wait d:/HPSiteScope.11.2/HPSiteScope.11.22/HPSiS1122_11.22_setup.exe -i silent"
end

cookbook_file “d:/HPSiteScope.11.2/SS1122130614-11.22.000-WinNT4.0.msi” do
cookbook "HPSiteScope"
action :create
not_if { ::File.exists?(“d:/HPSiteScope.11.2/SS1122130614-11.22.000-WinNT4.0.msi”) }
end

windows_package “SS1122130614-11.22.000-WinNT4.0.msi” do
source "D:\HPSiteScope.11.2\SS1122130614-11.22.000-WinNT4.0.msi"
options '/L*V “D:\SiS_patch_install.log”'
installer_type :msi
end

I am trying to install and upgrade a sitescope package in single recipe but it is failing because reboot is required before upgrade the package

  1. HPSiteScope_11.20_setup.exe – installation 2) HPSiS1122_11.22_setup.exe – upgrade 3) SS1122130614-11.22.000-WinNT4.0.msi – upgrade

After installing the first package(HPSiteScope_11.20_setup.exe ) reboot is required to update the folder relevant with this package . Issue: upgrade is looking for that folder relevant with that package

Is there is any way to retrigger the recipe after reboot?

To add the bat job in window to trigger “chef-solo” to upgrade the package once after reboot of the recipe for installation. ?

Any cookbook is there for installing HP sitescope package in window?
Thanks & Regards,
Premkumar
UTS

From: Gontrand, Premkumar
Sent: Tuesday, January 07, 2014 1:20 AM
To: chef@lists.opscode.com
Subject: window msi package installation issue

Hi,

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

default.rb

include_recipe “windows::default”

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

Error:

  • gem_package[win32-mutex] action install←[0m (up to date)←[0m
    Recipe: HPSiteScope::default←[0m
  • windows_package[S1122130614-11.22.000-WinNT4.0.msi] action install←[0m←[0m
    ================================================================================←[0m
    ←[31mError executing action install on resource 'windows_package[S1122130614-11.22.000-WinNT4.0.msi]'←[0m
    ================================================================================←[0m

←[0m
NameError←[0m
---------←[0m
uninitialized constant Chef::Win32::Registry::HKEY_LOCAL_MACHINE←[0m

←[0m
Resource Declaration:←[0m
---------------------←[0m

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

4: windows_package “S1122130614-11.22.000-WinNT4.0.msi” do
5: source "D:\HPSiteScope.11.2\S1122130614-11.22.000-WinNT4.0.msi"
6: options "/q"
7: installer_type :msi
8: action :install
9: end←[0m

←[0m
Compiled Resource:←[0m
------------------←[0m

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

windows_package(“S1122130614-11.22.000-WinNT4.0.msi”) do
action [:install]
retries 0
retry_delay 2
cookbook_name :HPSiteScope
recipe_name "default"
source "D:\HPSiteScope.11.2\S1122130614-11.22.000-WinNT4.0.msi"
options "/q"
installer_type :msi
package_name "S1122130614-11.22.000-WinNT4.0.msi"
end
←[0m

←[0m

I am new to development and window Any one faced the issue similar to that?

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

Thanks & Regards,
Premkumar


#2

When you say “retrigger the recipe after reboot” I think you’re saying
you’d like to run chef-client again after reboot, correct?

Right now you can get this behavior by running chef-client as a Windows
service (see http://docs.opscode.com/install_windows.html) – the service is
always “running,” so if you reboot, chef-client will run whatever recipes
are in the runlist again.

If you’re using chef-solo (looks like you are), we don’t have direct
support for this at the moment, but assuming you can reliably detect the
reboot required (e.g. from the return code of the installation command),
you could use the scheduled tasks resource in the Windows cookbook to
schedule a command line to run chef-solo once at some short interval in the
future (say, 2 minutes from the current time) and then reboot the system
(via the reboot resource). Then the Windows task scheduler would run
chef-solo after the system rebooted. You could also use various “run once”
registry keys are start menu locations to get chef-solo to run after reboot.

Certainly if this is a common enough scenario for the audience here I think
the reboot handling should be added to the resources themselves in a more
direct way to avoid convoluted recipes.

-Adam

From: Gontrand, Premkumar [mailto:Premkumar.Gontrand@fmr.com]
Sent: Wednesday, January 22, 2014 5:45 AM
To: 'chef@lists.opscode.com’
Subject: [chef] sitescope package installation issue on window

Hi,

Cookbook Name:: HPSiteScope

Recipe:: default

Copyright 2013, YOUR_COMPANY_NAME

All rights reserved - Do Not Redistribute

include_recipe “windows::default”

directory “d:/HPSiteScope.11.2” do

action :create

end

directory “d:/HPSiteScope.11.2/HPSiteScope.11.22” do

action :create

end

cookbook_file “d:/HPSiteScope.11.2/HPSiteScope_11.20_setup.exe” do

cookbook “HPSiteScope”

action :create

not_if { ::File.exists?(“d:/HPSiteScope.11.2/HPSiteScope_11.20_setup.exe”) }

end

cookbook_file “d:/HPSiteScope.11.2/ovinstallparams.ini” do

cookbook “HPSiteScope”

action :create

not_if { ::File.exists?(“d:/HPSiteScope.11.2/ovinstallparams.ini”) }

end

remote_directory “d:/HPSiteScope.11.2/packages” do

source ‘packages.11.20’

recursive true

action :create

end

execute " HPsitescope" do

print " Installation of site scope package started"

command “start /wait d:/HPSiteScope.11.2/HPSiteScope_11.20_setup.exe -i
silent”

end

cookbook_file
"d:/HPSiteScope.11.2/HPSiteScope.11.22/HPSiS1122_11.22_setup.exe" do

cookbook “HPSiteScope”

action :create

not_if {
::File.exists?(“d:/HPSiteScope.11.2/HPSiteScope.11.22/HPSiS1122_11.22_setup.exe”)
}

action :create

end

remote_directory “d:/HPSiteScope.11.2/HPSiteScope.11.22/packages” do

source ‘packages.11.22’

recursive true

action :create

end

execute " upgrading sitescope to 11.22" do

print " Installation of site scope package started"

command “start /wait
d:/HPSiteScope.11.2/HPSiteScope.11.22/HPSiS1122_11.22_setup.exe -i silent”

end

cookbook_file “d:/HPSiteScope.11.2/SS1122130614-11.22.000-WinNT4.0.msi” do

cookbook “HPSiteScope”

action :create

not_if {
::File.exists?(“d:/HPSiteScope.11.2/SS1122130614-11.22.000-WinNT4.0.msi”) }

end

windows_package “SS1122130614-11.22.000-WinNT4.0.msi” do

source “D:\HPSiteScope.11.2\SS1122130614-11.22.000-WinNT4.0.msi”

options ‘/L*V “D:\SiS_patch_install.log”’

installer_type :msi

end

I am trying to install and upgrade a sitescope package in single recipe but
it is failing because reboot is required before upgrade the package

  1. HPSiteScope_11.20_setup.exe – installation 2) HPSiS1122_11.22_setup.exe
    – upgrade 3) SS1122130614-11.22.000-WinNT4.0.msi – upgrade

After installing the first package(HPSiteScope_11.20_setup.exe ) reboot is
required to update the folder relevant with this package . Issue: upgrade
is looking for that folder relevant with that package

Is there is any way to retrigger the recipe after reboot?

To add the bat job in window to trigger “chef-solo” to upgrade the package
once after reboot of the recipe for installation. ?

Any cookbook is there for installing HP sitescope package in window?

Thanks & Regards,

Premkumar

UTS

From: Gontrand, Premkumar
Sent: Tuesday, January 07, 2014 1:20 AM
To: chef@lists.opscode.com
Subject: window msi package installation issue

Hi,

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

default.rb

include_recipe “windows::default”

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

Error:

  • gem_package[win32-mutex] action install←[0m (up to date)←[0m

Recipe: HPSiteScope::default←[0m

  • windows_package[S1122130614-11.22.000-WinNT4.0.msi] action
    install←[0m←[0m

================================================================================←[0m

←[31mError executing action install on resource
’windows_package[S1122130614-11.22.000-WinNT4.0.msi]'←[0m

================================================================================←[0m

←[0m

NameError←[0m

---------←[0m

uninitialized constant Chef::Win32::Registry::HKEY_LOCAL_MACHINE←[0m

←[0m

Resource Declaration:←[0m

---------------------←[0m

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

4: windows_package “S1122130614-11.22.000-WinNT4.0.msi” do

5: source “D:\HPSiteScope.11.2\S1122130614-11.22.000-WinNT4.0.msi”

6: options “/q”

7: installer_type :msi

8: action :install

9: end←[0m

←[0m

Compiled Resource:←[0m

------------------←[0m

Declared in C:/Users/chef/cookbooks/HPSiteScope/recipes/default.rb:4:in

`from_file’

windows_package(“S1122130614-11.22.000-WinNT4.0.msi”) do

action [:install]

retries 0

retry_delay 2

cookbook_name :HPSiteScope

recipe_name “default”

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

options “/q”

installer_type :msi

package_name “S1122130614-11.22.000-WinNT4.0.msi”

end

←[0m

←[0m

I am new to development and window Any one faced the issue similar to
that?

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

Thanks & Regards,

Premkumar


#3

Hi,

Thanks for your help. Let me try this out now

Thanks & Regards,
Premkumar
UTS

From: Adam Edwards [mailto:adamed@getchef.com]
Sent: Wednesday, January 22, 2014 9:36 AM
To: chef@lists.opscode.com
Subject: [chef] RE: sitescope package installation issue on window

When you say “retrigger the recipe after reboot” I think you’re saying you’d like to run chef-client again after reboot, correct?

Right now you can get this behavior by running chef-client as a Windows service (see http://docs.opscode.com/install_windows.html) – the service is always “running,” so if you reboot, chef-client will run whatever recipes are in the runlist again.

If you’re using chef-solo (looks like you are), we don’t have direct support for this at the moment, but assuming you can reliably detect the reboot required (e.g. from the return code of the installation command), you could use the scheduled tasks resource in the Windows cookbook to schedule a command line to run chef-solo once at some short interval in the future (say, 2 minutes from the current time) and then reboot the system (via the reboot resource). Then the Windows task scheduler would run chef-solo after the system rebooted. You could also use various “run once” registry keys are start menu locations to get chef-solo to run after reboot.

Certainly if this is a common enough scenario for the audience here I think the reboot handling should be added to the resources themselves in a more direct way to avoid convoluted recipes.

-Adam

From: Gontrand, Premkumar [mailto:Premkumar.Gontrand@fmr.commailto:Premkumar.Gontrand@fmr.com]
Sent: Wednesday, January 22, 2014 5:45 AM
To: 'chef@lists.opscode.commailto:chef@lists.opscode.com
Subject: [chef] sitescope package installation issue on window

Hi,

Cookbook Name:: HPSiteScope

Recipe:: default

Copyright 2013, YOUR_COMPANY_NAME

All rights reserved - Do Not Redistribute

include_recipe “windows::default”

directory “d:/HPSiteScope.11.2” do
action :create
end

directory “d:/HPSiteScope.11.2/HPSiteScope.11.22” do
action :create
end

cookbook_file “d:/HPSiteScope.11.2/HPSiteScope_11.20_setup.exe” do
cookbook "HPSiteScope"
action :create
not_if { ::File.exists?(“d:/HPSiteScope.11.2/HPSiteScope_11.20_setup.exe”) }
end

cookbook_file “d:/HPSiteScope.11.2/ovinstallparams.ini” do
cookbook "HPSiteScope"
action :create
not_if { ::File.exists?(“d:/HPSiteScope.11.2/ovinstallparams.ini”) }
end

remote_directory “d:/HPSiteScope.11.2/packages” do
source 'packages.11.20’
recursive true
action :create
end

execute " HPsitescope" do
print " Installation of site scope package started"
command "start /wait d:/HPSiteScope.11.2/HPSiteScope_11.20_setup.exe -i silent"
end

cookbook_file “d:/HPSiteScope.11.2/HPSiteScope.11.22/HPSiS1122_11.22_setup.exe” do
cookbook "HPSiteScope"
action :create
not_if { ::File.exists?(“d:/HPSiteScope.11.2/HPSiteScope.11.22/HPSiS1122_11.22_setup.exe”) }
action :create
end

remote_directory “d:/HPSiteScope.11.2/HPSiteScope.11.22/packages” do
source 'packages.11.22’
recursive true
action :create
end

execute " upgrading sitescope to 11.22" do
print " Installation of site scope package started"
command "start /wait d:/HPSiteScope.11.2/HPSiteScope.11.22/HPSiS1122_11.22_setup.exe -i silent"
end

cookbook_file “d:/HPSiteScope.11.2/SS1122130614-11.22.000-WinNT4.0.msi” do
cookbook "HPSiteScope"
action :create
not_if { ::File.exists?(“d:/HPSiteScope.11.2/SS1122130614-11.22.000-WinNT4.0.msi”) }
end

windows_package “SS1122130614-11.22.000-WinNT4.0.msi” do
source "D:\HPSiteScope.11.2\SS1122130614-11.22.000-WinNT4.0.msi"
options '/L*V “D:\SiS_patch_install.log”'
installer_type :msi
end

I am trying to install and upgrade a sitescope package in single recipe but it is failing because reboot is required before upgrade the package

  1. HPSiteScope_11.20_setup.exe – installation 2) HPSiS1122_11.22_setup.exe – upgrade 3) SS1122130614-11.22.000-WinNT4.0.msi – upgrade

After installing the first package(HPSiteScope_11.20_setup.exe ) reboot is required to update the folder relevant with this package . Issue: upgrade is looking for that folder relevant with that package

Is there is any way to retrigger the recipe after reboot?

To add the bat job in window to trigger “chef-solo” to upgrade the package once after reboot of the recipe for installation. ?

Any cookbook is there for installing HP sitescope package in window?
Thanks & Regards,
Premkumar
UTS

From: Gontrand, Premkumar
Sent: Tuesday, January 07, 2014 1:20 AM
To: chef@lists.opscode.commailto:chef@lists.opscode.com
Subject: window msi package installation issue

Hi,

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

default.rb

include_recipe “windows::default”

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

Error:

  • gem_package[win32-mutex] action install←[0m (up to date)←[0m
    Recipe: HPSiteScope::default←[0m
  • windows_package[S1122130614-11.22.000-WinNT4.0.msi] action install←[0m←[0m
    ================================================================================←[0m
    ←[31mError executing action install on resource 'windows_package[S1122130614-11.22.000-WinNT4.0.msi]'←[0m
    ================================================================================←[0m

←[0m
NameError←[0m
---------←[0m
uninitialized constant Chef::Win32::Registry::HKEY_LOCAL_MACHINE←[0m

←[0m
Resource Declaration:←[0m
---------------------←[0m

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

4: windows_package “S1122130614-11.22.000-WinNT4.0.msi” do
5: source "D:\HPSiteScope.11.2\S1122130614-11.22.000-WinNT4.0.msi"
6: options "/q"
7: installer_type :msi
8: action :install
9: end←[0m

←[0m
Compiled Resource:←[0m
------------------←[0m

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

windows_package(“S1122130614-11.22.000-WinNT4.0.msi”) do
action [:install]
retries 0
retry_delay 2
cookbook_name :HPSiteScope
recipe_name "default"
source "D:\HPSiteScope.11.2\S1122130614-11.22.000-WinNT4.0.msi"
options "/q"
installer_type :msi
package_name "S1122130614-11.22.000-WinNT4.0.msi"
end
←[0m

←[0m

I am new to development and window Any one faced the issue similar to that?

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

Thanks & Regards,
Premkumar


#4

Hi,

I am planning put that chef-solo on the window registery resources which I have mentioned below

registry_key “HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce\” do
values [{:name => ‘upgradingpackage’, :type => :string, :data => ‘chef-solo -c d:/HPSiteScope.11.2/solo.rb -j d:/HPSiteScope.11.2/solo.json -l debug -L log.txt upgrade.rb’}
]
action :create
end

Any suggestion or any other method to do that ?
Thanks & Regards,
Premkumar

From: Adam Edwards [mailto:adamed@getchef.com]
Sent: Wednesday, January 22, 2014 9:36 AM
To: chef@lists.opscode.com
Subject: [chef] RE: sitescope package installation issue on window

When you say “retrigger the recipe after reboot” I think you’re saying you’d like to run chef-client again after reboot, correct?

Right now you can get this behavior by running chef-client as a Windows service (see http://docs.opscode.com/install_windows.html) – the service is always “running,” so if you reboot, chef-client will run whatever recipes are in the runlist again.

If you’re using chef-solo (looks like you are), we don’t have direct support for this at the moment, but assuming you can reliably detect the reboot required (e.g. from the return code of the installation command), you could use the scheduled tasks resource in the Windows cookbook to schedule a command line to run chef-solo once at some short interval in the future (say, 2 minutes from the current time) and then reboot the system (via the reboot resource). Then the Windows task scheduler would run chef-solo after the system rebooted. You could also use various “run once” registry keys are start menu locations to get chef-solo to run after reboot.

Certainly if this is a common enough scenario for the audience here I think the reboot handling should be added to the resources themselves in a more direct way to avoid convoluted recipes.

-Adam

From: Gontrand, Premkumar [mailto:Premkumar.Gontrand@fmr.commailto:Premkumar.Gontrand@fmr.com]
Sent: Wednesday, January 22, 2014 5:45 AM
To: 'chef@lists.opscode.commailto:chef@lists.opscode.com
Subject: [chef] sitescope package installation issue on window

Hi,

Cookbook Name:: HPSiteScope

Recipe:: default

Copyright 2013, YOUR_COMPANY_NAME

All rights reserved - Do Not Redistribute

include_recipe “windows::default”

directory “d:/HPSiteScope.11.2” do
action :create
end

directory “d:/HPSiteScope.11.2/HPSiteScope.11.22” do
action :create
end

cookbook_file “d:/HPSiteScope.11.2/HPSiteScope_11.20_setup.exe” do
cookbook "HPSiteScope"
action :create
not_if { ::File.exists?(“d:/HPSiteScope.11.2/HPSiteScope_11.20_setup.exe”) }
end

cookbook_file “d:/HPSiteScope.11.2/ovinstallparams.ini” do
cookbook "HPSiteScope"
action :create
not_if { ::File.exists?(“d:/HPSiteScope.11.2/ovinstallparams.ini”) }
end

remote_directory “d:/HPSiteScope.11.2/packages” do
source 'packages.11.20’
recursive true
action :create
end

execute " HPsitescope" do
print " Installation of site scope package started"
command "start /wait d:/HPSiteScope.11.2/HPSiteScope_11.20_setup.exe -i silent"
end

cookbook_file “d:/HPSiteScope.11.2/HPSiteScope.11.22/HPSiS1122_11.22_setup.exe” do
cookbook "HPSiteScope"
action :create
not_if { ::File.exists?(“d:/HPSiteScope.11.2/HPSiteScope.11.22/HPSiS1122_11.22_setup.exe”) }
action :create
end

remote_directory “d:/HPSiteScope.11.2/HPSiteScope.11.22/packages” do
source 'packages.11.22’
recursive true
action :create
end

execute " upgrading sitescope to 11.22" do
print " Installation of site scope package started"
command "start /wait d:/HPSiteScope.11.2/HPSiteScope.11.22/HPSiS1122_11.22_setup.exe -i silent"
end

cookbook_file “d:/HPSiteScope.11.2/SS1122130614-11.22.000-WinNT4.0.msi” do
cookbook "HPSiteScope"
action :create
not_if { ::File.exists?(“d:/HPSiteScope.11.2/SS1122130614-11.22.000-WinNT4.0.msi”) }
end

windows_package “SS1122130614-11.22.000-WinNT4.0.msi” do
source "D:\HPSiteScope.11.2\SS1122130614-11.22.000-WinNT4.0.msi"
options '/L*V “D:\SiS_patch_install.log”'
installer_type :msi
end

I am trying to install and upgrade a sitescope package in single recipe but it is failing because reboot is required before upgrade the package

  1. HPSiteScope_11.20_setup.exe – installation 2) HPSiS1122_11.22_setup.exe – upgrade 3) SS1122130614-11.22.000-WinNT4.0.msi – upgrade

After installing the first package(HPSiteScope_11.20_setup.exe ) reboot is required to update the folder relevant with this package . Issue: upgrade is looking for that folder relevant with that package

Is there is any way to retrigger the recipe after reboot?

To add the bat job in window to trigger “chef-solo” to upgrade the package once after reboot of the recipe for installation. ?

Any cookbook is there for installing HP sitescope package in window?
Thanks & Regards,
Premkumar
UTS

From: Gontrand, Premkumar
Sent: Tuesday, January 07, 2014 1:20 AM
To: chef@lists.opscode.commailto:chef@lists.opscode.com
Subject: window msi package installation issue

Hi,

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

default.rb

include_recipe “windows::default”

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

Error:

  • gem_package[win32-mutex] action install←[0m (up to date)←[0m
    Recipe: HPSiteScope::default←[0m
  • windows_package[S1122130614-11.22.000-WinNT4.0.msi] action install←[0m←[0m
    ================================================================================←[0m
    ←[31mError executing action install on resource 'windows_package[S1122130614-11.22.000-WinNT4.0.msi]'←[0m
    ================================================================================←[0m

←[0m
NameError←[0m
---------←[0m
uninitialized constant Chef::Win32::Registry::HKEY_LOCAL_MACHINE←[0m

←[0m
Resource Declaration:←[0m
---------------------←[0m

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

4: windows_package “S1122130614-11.22.000-WinNT4.0.msi” do
5: source "D:\HPSiteScope.11.2\S1122130614-11.22.000-WinNT4.0.msi"
6: options "/q"
7: installer_type :msi
8: action :install
9: end←[0m

←[0m
Compiled Resource:←[0m
------------------←[0m

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

windows_package(“S1122130614-11.22.000-WinNT4.0.msi”) do
action [:install]
retries 0
retry_delay 2
cookbook_name :HPSiteScope
recipe_name "default"
source "D:\HPSiteScope.11.2\S1122130614-11.22.000-WinNT4.0.msi"
options "/q"
installer_type :msi
package_name "S1122130614-11.22.000-WinNT4.0.msi"
end
←[0m

←[0m

I am new to development and window Any one faced the issue similar to that?

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

Thanks & Regards,
Premkumar