Solved

Installing Git and chefdk via bat script

Posted on 2016-11-25
8
113 Views
Last Modified: 2016-12-21
i have a windows domain and i need to install Git & Chefdk but the install script seems to be expert level which i am new at. can anyone help please

my Script

@echo off

msiexec.exe /i \\domain\netlogon\install\Git\Git-2.10.2-64-bit.exe


pause

exit

Git

 https://git-scm.com/download/win

chefdk

https://downloads.chef.io/chef-dk/
0
Comment
Question by:NxJNY
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 24

Expert Comment

by:NVIT
ID: 41901889
What do you need help with?
Do you get errors?
0
 
LVL 2

Author Comment

by:NxJNY
ID: 41901896
sorry should have mentioned that i do get an error
1.png
0
 
LVL 24

Expert Comment

by:NVIT
ID: 41902067
You don't say what OS you are running. 32 or 64 bit? Possibly you are trying to install a 64 bit in a 32 bit OS.
On the download page, there is also an option to try Git for Windows Portable ("thumbdrive edition")
0
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 
LVL 2

Author Comment

by:NxJNY
ID: 41902506
we are running a 64 bit OS and i'm using the 64 bit install
0
 
LVL 24

Expert Comment

by:NVIT
ID: 41902662
Try  installing the 32-bit.
0
 
LVL 2

Author Comment

by:NxJNY
ID: 41904706
trying this script but getting this error below- what am i doing wrong here

@echo off

msiexec.exe /i C:\Users\rsp\Desktop\Git-2.10.2.msi /qn

[Setup]
Lang=default
Dir=C:\Program Files\Git
Group=Git
NoIcons=0
SetupType=default
Components=
Tasks=
PathOption=Cmd
SSHOption=OpenSSH
CRLFOption=CRLFAlways

pause

exit

11.png
0
 
LVL 24

Accepted Solution

by:
NVIT earned 500 total points
ID: 41904717
You are combining setup info with a batch file. In the batch file, remove everything between the lines:

msiexec.exe /i C:\Users\rsp\Desktop\Git-2.10.2.msi /qn
and
pause

Run the batch file.
1
 
LVL 2

Author Closing Comment

by:NxJNY
ID: 41905018
thanks - once i convert to msi and i used the script - worked perfectly
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
How to commit changes, push them to a remote repository, and pull them from another location using the EGit plugin for Eclipse.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question