Solved

Installing Git and chefdk via bat script

Posted on 2016-11-25
8
86 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
  • 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
The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

 
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

860 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