Skip to main content

Automate Software Installation. Silently, Unattended And in Bulk

gears2The Windows software install process is a pain in the ass. It is one thing that hasn’t changed for nearly two decades. The repeated clicking of the ‘Next’ button, the agreeing of the EULA that nobody reads, the checking/unchecking of boxes - all requires you to sit through the entire process, for every single program you install.

Projects such as Ninite and TGUP (The Great Unattended Project) provides some comfort by allowing you to install (and even download) several software at once. But they have limitations too – you can install only those software they support, and the support is limited and often restricted to only free and open source programs.

Windows Post-Install Wizard is another program that lets you automate the initial configuration and customization every user invariably goes through after every fresh Windows installation. This includes applying tweaks, turning on and off services, registry tweaking and of course, unattended software installs.

This tutorial will show you a different and simpler way to create silent installers of multiple software programs and automate their installation, without user intervention. I encourage you to explore each of the different methods and programs I mentioned in the previous paragraphs, including the one below, and see which suits you best.

Step 1: Find Silent Switches of Installers

Most installers or setup programs have hidden command line switches which can be used to bypass all those confirmation message boxes you have to click during a typical install process. Some software developer will include the command line switches in its documentation but many do not. So we have to sniff out these hidden switches from the installer. To do that we will use a really old program called Universal Silent Switch Finder (direct download link).

Run the program, select the program setup file and it immediately shows all switches that the setup accepts. In this screenshot, I used the installer of CDBurner XP.


Copy the silent switches to the clipboard.

Step 2: Create Batch Script With AutoIT

The next step is to create a batch script that will execute the installer with the silent switches applied. For this I chose a scripting language called AutoIt. It is a BASIC-like scripting language that is very easy to use and can be used to simulate keystrokes and mouse movement, and can interact with the Windows GUI that makes it extremely useful for automation tasks.

Download and install the AutoIt Script Editor, SciTE.

In our automation script we will be using the command Runwait. Runwait executes the requested program and pauses script execution until the program finishes. This way we can queue several installers to run one after the other.

To begin, launch SciTE and type the following:


The switches I got from Universal Silent Switch Finder. To add multiple installer programs you just add multiple RunWait commands. End your script with Exit.


Save the scipt (.au3 extension). Then click on Tools > Compile in the editor. This will create an .exe version of your script that you can run on any machine without having AutoIT installed.

Move the compiled EXE script to the same folder where the installers are located, and run it. If you did everything right, your programs should be installed in sequence. You won’t see anything though since we have suppressed all message boxes through the switches. The only thing you will notice is a busy cursor. It is best to leave the computer until it completes the entire installation. Once it’s over, check your start menu and you should see the programs listed.

I Cannot Find Silent Switches For My Program

This is one problem with Universal Silent Switch Finder. It cannot find silent switches for all programs, usually the ones that uses custom build setup packages. For example, it does not work for Firefox, Opera or Skype.

If Universal Silent Switch Finder fails to find silent switches for your program, you can checkout this MSFN forum thread. It has a fairly large list of user contributed switches for popular software installers. You can also search on the discussion board for your program, or Google it.

If a Google search draws blank, the next possible option is to identify the installer system that the program uses. There are several systems which vendors use to create installers for their applications. If you can identify which installer package was used to create the program setup, you can make an educated guess about what switches to use. Sometimes this will be obvious from the installer's splash screen and sometimes you will have to guess.

This page over at Sourgeforge explains the various switches different installer packages use and how to discover switch by running strings. This guide is your last resort.


Post a Comment

Popular posts from this blog

How to Record CPU and Memory Usage Over Time in Windows?

Whenever the computer is lagging or some application is taking too long to respond, we usually fire up task manager and look under the Performance tab or under Processes to check on processor utilization or the amount of free memory available. The task manager is ideal for real-time analysis of CPU and memory utilization. It even displays a short history of CPU utilization in the form of a graph. You get a small time-window, about 30 seconds or so, depending on how large the viewing area is.

How to Schedule Changes to Your Facebook Page Cover Photo

Facebook’s current layout, the so called Timeline, features a prominent, large cover photo that some people are using in a lot of different creative ways. Timeline is also available for Facebook Pages that people can use to promote their website or business or event. Although you can change the cover photo as often as you like, it’s meant to be static – something which you design and leave it for at least a few weeks or months like a redesigned website. However, there are times when you may want to change the cover photo frequently and periodically to match event dates or some special promotion that you are running or plan to run. So, here is how you can do that.

Diagram 101: Different Types of Diagrams and When To Use Them

Diagrams are a great way to visualize information and convey meaning. The problem is that there’s too many different types of diagrams, so it can be hard to know which ones you should use in any given situation. To help you out, we’ve created this diagram that lays out the 7 most common types of diagrams and when they’re best used: