Solved

Installing Git and chefdk via bat script

Posted on 2016-11-25
8
51 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 23

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 23

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
 
LVL 2

Author Comment

by:NxJNY
ID: 41902506
we are running a 64 bit OS and i'm using the 64 bit install
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 23

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 23

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
exchange, scripts 3 59
Script to copy a folder to multiple folders 2 37
Batch Login Script - Update default homepage 8 41
Some AHK commands fail in Microsoft OneNote 5 28
If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
How to create a Git repository using GitHub, and how to clone and checkout the repository using the EGit plugin for Eclipse.

947 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now