Sha256: 78822bf92d72c95c6dcc8ce61b9e715d1386d3950d24baadaeab17907402c704

Contents?: true

Size: 1.49 KB

Versions: 35

Compression:

Stored size: 1.49 KB

Contents

mkdir C:\chef

> C:\chef\wget.vbs (
echo.url = WScript.Arguments.Named^("url"^)
echo.path = WScript.Arguments.Named^("path"^)
echo.Set objXMLHTTP = CreateObject^("MSXML2.ServerXMLHTTP"^)
echo.Set wshShell = CreateObject^( "WScript.Shell" ^)
echo.Set objUserVariables = wshShell.Environment^("USER"^)
echo.
echo.'http proxy is optional
echo.'attempt to read from HTTP_PROXY env var first
echo.On Error Resume Next
echo.
echo.If NOT ^(objUserVariables^("HTTP_PROXY"^) = ""^) Then
echo.objXMLHTTP.setProxy 2, objUserVariables^("HTTP_PROXY"^)
echo.
echo.'fall back to named arg
echo.ElseIf NOT ^(WScript.Arguments.Named^("proxy"^) = ""^) Then
echo.objXMLHTTP.setProxy 2, WScript.Arguments.Named^("proxy"^)
echo.End If
echo.
echo.On Error Goto 0
echo.
echo.objXMLHTTP.open "GET", url, false
echo.objXMLHTTP.send^(^)
echo.If objXMLHTTP.Status = 200 Then
echo.Set objADOStream = CreateObject^("ADODB.Stream"^)
echo.objADOStream.Open
echo.objADOStream.Type = 1
echo.objADOStream.Write objXMLHTTP.ResponseBody
echo.objADOStream.Position = 0
echo.Set objFSO = Createobject^("Scripting.FileSystemObject"^)
echo.If objFSO.Fileexists^(path^) Then objFSO.DeleteFile path
echo.Set objFSO = Nothing
echo.objADOStream.SaveToFile path
echo.objADOStream.Close
echo.Set objADOStream = Nothing
echo.End if
echo.Set objXMLHTTP = Nothing
)

@rem Install Chef using chef-client MSI installer
cscript /nologo C:\chef\wget.vbs /url:http://www.opscode.com/chef/install.msi /path:%TEMP%\chef-client-latest.msi
msiexec /qb /i %TEMP%\chef-client-latest.msi

Version data entries

35 entries across 35 versions & 3 rubygems

Version Path
veewee-0.5.0.alpha4 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-0.5.0.alpha3 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-0.5.0.alpha2 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-0.5.0.alpha1 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-0.4.5.1 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-0.4.5 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-0.4.5.pre1 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-0.4.4 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-0.4.3 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-0.4.2 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-0.4.1 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-0.4.0 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-0.3.12 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-0.3.11 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-0.3.10 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-0.3.9 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-atlassian-0.3.11 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-0.3.7 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-0.3.6 templates/windows-7-premium-amd64/install-chefclient.bat
veewee-0.3.5 templates/windows-7-premium-amd64/install-chefclient.bat