Install .exe or .msi installer using a script

You can use this script to install .exe installer in quiet mode without user interaction.

@echo off

REM Set the path to the installer file
set INSTALLER_PATH="C:\path\to\installer.exe"

REM Install the application in quiet mode
%INSTALLER_PATH% /quiet

REM Check if the installation was successful
if %ERRORLEVEL% NEQ 0 (
  echo Installation failed.
) else (
  echo Installation was successful.
)

This script uses the /quiet command line argument to run the installer in quiet mode, which means it will not display any user interface and will automatically use the default installation options.

You can modify this script to customize it for your specific needs. For example, you can add additional command line arguments to the installer command to control how it is installed.

Leave a Comment

Your email address will not be published. Required fields are marked *