Apache OpenOffice (AOO) Bugzilla – Issue 80165
setup /a <package.msi> shows help instead of installing
Last modified: 2007-07-30 10:12:48 UTC
Reproduction: - Go to the directory containing the .msi package and the setup application - enter "setup /a staroffice8.msi" (or OpenOffice....) -> A dialog pops up displaying the help for the setup application informing you that the syntax is correct - setup /a <package.msi>. But we want the user to only enter "setup /a" to install the application. If the package name is appended, setup does not work.
I think you should use msiexec /a <*.msi> or setup /a.
The parameter for the setup is only "/a". Of course the Windows Installer msiexec.exe supports many, many more parameter. For the Windows Installer service you have to define the installation type (/a, /i, /jm, /ju, ...) and the database. Therefore the correct syntax is "msiexec.exe /a <database.msi". The setup is only a wrapper for the call of msiexec.exe, that only supports selected parameter. The file "setup.exe" is part of the installation set and reads the content of the file setup.ini, that is located next to the setup.exe. In this setup.ini This setup.ini contains all information required by setup.exe, also the name of the database in the installation set. Therefore you only have to start "setup /a". If you make the not supported call "setup.exe /a <database.msi>, the setup.exe gives the second parameter to the Windows Installer service, so that the wrong call is: msiexec.exe /a <database.msi> <database.msi> This leads to an error for the Windows Installer. Therefore you get the help dialog for the Windows Installer service, not for our setup. So this works fine.
close as i've been convinced.