irfan in irfanadziri.dev in ~/posts/automate-installation-in… on main via astro v7.4.12
Post
Automate Installation in Windows
Execute installers with .exe or .msi automatically with script. Useful in setting up a fresh Windows installation.
This script is intended for automating GUI .exe and .msi installation. A useful tool to setup fresh Windows with offline installers. It will iterate all installers in a folder to run one after another.
Usage
Pre-requisite: put all the .exe and .msi installers in a folder.
- Copy this script.
@echo off
for %%i in (*.msi *.exe) do (
pause "Press Enter to start the installation: %%i"
start /wait %%i
)
echo Installations Complete!- Paste into notepad and save as
Install.bat. - Copy the script into the folder of all of your installers.
- Run the script to make installation.
Important note: This is a semi-auto approach because of GUI nature that needs user interaction to complete installation. I personally used this script just to make sure I don’t skip any of the installer.
Written by
Irfan Zaki, cloud and platform engineer. I run enterprise cloud infrastructure and ship whole products on my own; the work shows both.