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
-------------------------------------------------------------------------
Do you use WPKG? Tell us how! >> http://wpkg.org/Testimonials
_______________________________________________
wpkg-users mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/wpkg-users

Reply via email to