How to write a script to install software

Written by mike benson
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to write a script to install software
Write a script to deploy a software installation. (computers network image by Orlando Florin Rosu from

Performing installations and updates on multiple computers can sometimes be a long and frustrating process. The most efficient way to tackle the job is to make it as automated as possible. This prevents the need for you to copy the package over to each computer. It also prevents you from having to execute the package manually. Automating a software distribution starts with learning very basic scripting. You can create a simple batch file that launches an installation package on a single network share and call it to distribute to all computers on a domain. Combining a simple batch script with the Group Policy or Task Scheduler will make it much easier for you to deploy a software installation.

Skill level:

Other People Are Reading


  1. 1

    Press the "Windows" and "R" keys simultaneously on your keyboard. This loads a "Run" box on your screen.

  2. 2

    Type "Notepad.exe" and click the "OK" button. This opens the Windows Notepad utility.

  3. 3

    Type one of the following scripts into Notepad. (Replace the executable name and location with the actual location and name of the installation package.) Single Computer:

    @Echo Off

    C:\ProgramFiles\Program Folder\Package.exe /S

    Deploy Across Domain:

    @ Echo Off

    \Server_Name\Share_Folder\Package.exe /S

  4. 4

    Click "File" and click "Save As." This opens a "Save As" dialogue window. Choose a save location from the left pane.

  5. 5

    Click in the "Save as Type" drop-down menu and click "All Files." Type "InstallSript.BAT" in the "File Name" box, and then click the "Save" button.

Tips and warnings

  • Some installation packages will require you to copy a .txt document to the destination. The installer determines advanced installation instructions by reading this file. If your package includes this file, follow the instructions inside the file for deployment.
  • While triggers can be set via script, if you are still learning scripting you can set simple triggers via Task Scheduler or Group Policy. This allows easy set-up to trigger your .bat file to run at user logon or at a scheduled time. For example, use the scheduler to trigger the script to run after everyone has left for the evening.
  • Ensure everyone on your network as access rights to the share folder.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.