[chef] Re: Need to Install .Net framework4


Chronological Thread 
  • From: Azul < >
  • To:
  • Subject: [chef] Re: Need to Install .Net framework4
  • Date: Mon, 23 Dec 2013 18:27:12 +0000

Sorry it should had been:

wic_x64_enu.exe" /q /norestart

dotNetFx40_Full_x86_x64.exe" /q /norestart


On 23 December 2013 16:46, Azul < " target="_blank"> > wrote:
.net 4.0 gave me the troubles sometime ago. In my case I think it was lack of OS updates.
I ended up adding it to the base image,  but there are a couple of things you could try.

I suppose you already tried it to install it manually so I won't ask if you did.

What happens when you install it not using chef but directly issuing the commands through a winrm/rdp/ssh shell or directly on the command prompt ?

wic_x64_enu.exe" /q /norestart
dotNetFx40_Full_x86_x64.exe




On 23 December 2013 14:12, < " target="_blank"> > wrote:

hi all,

I need to install .Net frame work4 in windows 2008 R2 using cookbook. I tried
with ms_dotnet4  and dotnetframework-master cookbooks but no use, it will
download the package not installing!!!! why?????

please reply with any cookbooks or commands see below my code

First attempt----
windows_package node['.net']['v4.0']['package_name'] do
        source node['.net']['url']
        installer_type :custom
        action :install
      end




second attempt....
exe = "dotNetF#{node[:netfw][:release]}.exe"
dst = "#{node[:netfw][:dir]}\\#{exe}"
erl = "#{node[:netfw][:dir]}\\#{exe}"

remote_file dst do
  source "#{node[:netfw][:mirror]}/#{exe}"
  not_if { File.exists?(dst) }
end


execute "install #{exe}" do
  command "#{dst} /S /NCRC /D=#{node[:netfw][:dir]}"
  not_if { File.exists?(erl) }
end

package downloaded but not installing in client, the session continiously
runing in client i got error message in workstation like

"ERROR: WinRM::WinRMHTTPTransportError: Bad HTTP response returned from server
(500)."

Thanks and Regards,
Ganesan.A





Archive powered by MHonArc 2.6.16.

§