Jump to content

Hey Guys,

 

I'm interested in learning how to make a batch file that can be used to automatically install a program. While I know how to start the process, how would I make it so it can answer the "user" interaction questions?

 

Thanks in advanced for the help

15" MBP TB

AMD 5800X | Gigabyte Aorus Master | EVGA 2060 KO Ultra | Define 7 || Blade Server: Intel 3570k | GD65 | Corsair C70 | 13TB

Link to comment
https://linustechtips.com/topic/13562-how-to-automatically-install-a-program/
Share on other sites

Link to post
Share on other sites

It's not that simple.  Enterprises do it via a management suite such as Novell Zen or LANDesk.  It requires creating a custom installer that enters preset values and silently installs programs with a single click.  This usually involves you using software to record your actions for a single install and then packaging them into a custom installer.  I'm not sure if there are any free options out there that do this. 

Current Rig
AMD Ryzen 5900X - Asus ROG Strix X570-E Gaming WiFi 2 - 32 GB GSkill TridentZ RGB
GeForce RTX 3080 - WD Black SN850 1TB  - Lian Li O11 Dynamic XL

Link to post
Share on other sites

It's not that simple.  Enterprises do it via a management suite such as Novell Zen or LANDesk.  It requires creating a custom installer that enters preset values and silently installs programs with a single click.  This usually involves you using software to record your actions for a single install and then packaging them into a custom installer.  I'm not sure if there are any free options out there that do this. 

And my assumption is that it would be difficult to program one using batch?

15" MBP TB

AMD 5800X | Gigabyte Aorus Master | EVGA 2060 KO Ultra | Define 7 || Blade Server: Intel 3570k | GD65 | Corsair C70 | 13TB

Link to post
Share on other sites

And my assumption is that it would be difficult to program one using batch?

Problem is that not all programs have support for an unattended install out of the box.  If they do, it's pretty easy to batch it as it usually requires an xml file with some options and then launching the installer with a /s or /q switch or something along those lines.

Current Rig
AMD Ryzen 5900X - Asus ROG Strix X570-E Gaming WiFi 2 - 32 GB GSkill TridentZ RGB
GeForce RTX 3080 - WD Black SN850 1TB  - Lian Li O11 Dynamic XL

Link to post
Share on other sites

There is something else you might be able to use though, it's something that was shortly discussed in my education.

It's called AutoIt. It allows you to program actions such as automatically clicking a button etc.

 

http://www.autoitscript.com/site/autoit/

 

Is this what you are looking for or?

Link to post
Share on other sites

There is something else you might be able to use though, it's something that was shortly discussed in my education.

It's called AutoIt. It allows you to program actions such as automatically clicking a button etc.

http://www.autoitscript.com/site/autoit/

Is this what you are looking for or?

Basically, yes. Thank you!

15" MBP TB

AMD 5800X | Gigabyte Aorus Master | EVGA 2060 KO Ultra | Define 7 || Blade Server: Intel 3570k | GD65 | Corsair C70 | 13TB

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×