Skip to content

Instantly share code, notes, and snippets.

@grdnrio
Created June 22, 2017 08:45
Show Gist options
  • Save grdnrio/5e8b5dd5590ab46a3e3da2b853264846 to your computer and use it in GitHub Desktop.
Save grdnrio/5e8b5dd5590ab46a3e3da2b853264846 to your computer and use it in GitHub Desktop.
.NET package installation sample 1
reboot '.Net Install' do  
  reason 'Need to reboot after .NET installation'
  action :nothing
end
 
if version_arr[6][:data] != 394_271  
  package '.NET 4.6.1' do
    source 'https://download.microsoft.com/download/E/4/1/E4173890-A24A-4936-9FC9-AF930FE3FA40/NDP461-KB3102436-x86-x64-AllOS-ENU.exe'
    installer_type :custom
    action :install
    returns [0, 3010]
    options '/norestart /passive'
    notifies :request_reboot, 'reboot[.Net Install]', :immediately
    timeout 3000
  end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment