Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Looking To Learn How To Install Software Using .Bat Files

14 May 2014   #1
AGame20

Windows 7 64 bit
 
 
Looking To Learn How To Install Software Using .Bat Files

Hey Guys,

I've been doing help desk for awhile, and the company I recently started working for had been using .bat files to do silent installations and make life easier. I've been responsible for the installs lately, and some of the files are outdated or I need to create new ones. i've never created them, and would like to learn how. Doing a google search gave me a bunch of different ones that kind of confused me more. If anybody has a solid link to a good how to for beginners or can help, feel free to let me know, as I'm looking to learn. Thanks for your time.


My System SpecsSystem Spec
.
14 May 2014   #2
Dude

Windows 10 Pro X64
 
 

My System SpecsSystem Spec
14 May 2014   #3
AGame20

Windows 7 64 bit
 
 

Thank Dude, I'll definitely check that out now, much appreciated.
My System SpecsSystem Spec
.

15 May 2014   #4
AGame20

Windows 7 64 bit
 
 

Seems like more basic commads and creating menus, any more suggestions? I'd really appreciate it, thanks!
My System SpecsSystem Spec
18 May 2014   #5
A Guy

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x64 SP1
 
 

If you want to use a program, have a look at Silent Install Builder

Silent Install Builder

You can also look into AutoIt - AutoItScript , they have lots of sample scripts and a forum.

A Guy
My System SpecsSystem Spec
27 Apr 2018   #6
CC445

Windows 10
 
 

I would recommend creating a folder for your installer and files before doing this.
Once you've done that, try this code:
Code:
 @echo off
echo This will install (insert program name here)
pause
cls
echo Installing...
mkdir "folder the files will be installed in"
copy "insert file you want to copy here" "insert destination folder (the one that you specified earlier) here" /h /q /s
rem Copy and paste the "copy" command for each file you want to install.
echo All done!
pause
Here are some useful arguments you can use for your copy command:
Code:
/g - Show the percentage of files being copied
/h - Copy hidden files.
/p - Asks the user for confirmation before installing files.
/q - Quiet mode.
/s - Include subdirectories.
/v - Verify files.
I hope this helps you!
My System SpecsSystem Spec
27 Apr 2018   #7
samuria

win 8 32 bit
 
 

As suggested autoitis one of the best as you can build a stand alone exe with bat files they can be read/altered the other thing with autoit is there is a recorder so you can record what you want to do and it will write the script for you. It has so many functions you cant run with just a batch file
My System SpecsSystem Spec
Reply

 Looking To Learn How To Install Software Using .Bat Files




Thread Tools




Similar help and support threads
Thread Forum
I want to learn to analyze BSoD dump files!
Hello, I would like to learn to analyze myself the BSoD dump. The reason is because I work as a PC technician and it's not uncommon that a client call me complaining about a blue screen. The fact is that I would like to get independent and not have to upload the files here at the BSOD section...
BSOD Help and Support
Cannot install software due to corrupt install files
Hi all, I have a brand new computer running windows 7 home prem 64bit. Windows 7 installation is only one day old so all drivers are new. This is happening when trying to install different software installation files downloaded from the internet. I have downloaded these different installers...
Software
Can't install software, or open .exe files
Thank you all in advance for your time and intellect in helping me with this problem. This is my first time posting on a forum, but I have for years used an appreciated this precious resource. I have worked with computers for many years and am not a pro with them but very handy. My wife on her...
Software
I want to learn how to pre - install Windows!
Hello colleagues, I would like to learn how to pre - install Windows 7, will you please give me a link where I can learn, or a book? Thank you very much! Best Regards Stefany
Installation & Setup
Temp Files or Best Way To Learn Is To Teach
I was helping another member regain space on his hard drive. After doing disc cleanup, many temp files remained, per the excellent software windirstat WinDirStat - Windows Directory Statistics Further analysis revealed that it was his temporary files (20gb). With the help of Brinks excellent...
Performance & Maintenance


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 22:19.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App