[wpkg-users] Command Line Client Installer

Rainer Meier r.meier at wpkg.org
Thu Mar 27 19:23:56 CET 2008


Hi,

Tomasz Chmielewski wrote:
> It's a MSI file, so it will install from the command line without problems.

Just for the archives. MSI files always come with a silent installation 
(if the one who created the package did not hard-code any dialog boxes).

All MSI packages are installed using 'msiexec'. If you double-click on 
an MSI file then just msiexec is invoked.

Use 'msiexec /?' to see a list of parameters.

Usually MSI silent-installations all look the same:

msiexec /i <msifile.msi> /qn /norestart


So you can easily add it to a batch file. I am almost always using the 
same 'framework':

@echo off

set INSTALLER_LOC=%~dp0
set MSIFILE=<put-msi-name-here.msi>

echo Installing <Softwarename>

start /wait "PkgInstall" msiexec /i "%INSTLALLER_LOC%%MSIFILE%" /qn



This works perfectly if the batch file is stored to the same directory 
where the MSI file is located. Additionally no hard-coded full paths are 
required as the installer location is determined at run-time.


br,
Rainer



More information about the wpkg-users mailing list