Syntax problem executing msiexec statement

Posted on 2008-10-28
Last Modified: 2013-11-14
I need to install a web application using the msiexec tool.
If I execute the following (commandline I copied from the internet) the msiexec tool executes but as expected, notifies me that the msi file does not exist.
msiexec /JM msisample.msi /T transform.mst /LIME logfile.txt

Now if I execute the following (my commandline), the windows installer help window pops up, giving all the command syntax options...which I gather, means there is a problem with the syntax of the commandline.
msiexec /JM C:\Solutions\Multiple Installs\Setup.msi /T BA2.mst /LIME logfile.txt

Why would the first one work and not the second?
From which command prompt should I execute the commandline?
Is it possible to put the commandline into a batch file and just run the batch file to install the application?
Question by:FarData
  • 4
  • 4

Expert Comment

ID: 22829169
Yes it is possible to use a CMD or BAT file to run the MSI.

The first one didn't work because the msiexec process couldn't find the path to the MSI which you stated in the second one. If you are looking to install an application why not just try:

msiexec /i C:\Solutions\Multiple Installs\Setup.msi TRANSFORMS=BA2.mst /L*v <Path to Logfile>
LVL 40

Accepted Solution

Vadim Rapp earned 250 total points
ID: 22830406
> Why would the first one work and not the second?

because of the space in the file name. The following would work:

msiexec /JM "C:\Solutions\Multiple Installs\Setup.msi" .......

Author Comment

ID: 22836625
Thank you vadimrapp1, it looks like the dbl quotes did the trick.

But now I'm getting the following error: Error 1925. You do not have sufficient privileges to complete this installation for all users of the machine.  Log on as administrator and then retry this installation.

I logged on to the server as the domain administrator and as the local administrator, and still I get the error message. If I dbl click on the msi file, it starts to install, which means I do have the correct permissions.
Could there be a problem with the mst file? Maybe permissions I need to set during the creation of the mst file. I used Orca to create the mst file.
LVL 40

Expert Comment

by:Vadim Rapp
ID: 22841392
it's not about the permissions to read a file, it's about the permissions to do something that the installation is doing.

I this is on windows nt, see

Also see
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.


Author Comment

ID: 22846559
Thank you for your help, vadimrapp1, but we have decided not to go with this approach anymore.
We were trying to install two instances of the same application on one server. But our application contains COM+ components and the way in which we want to apply this deployment, is not going to work.
I did however get it to work. Got some step by step from
By using orca, I had to change the product code (property table) and remove the row containing the ERRCA_CANCELNEWERVERSION value (InstallExecuteSequence table). By removing this row, you will prevent get the error message "Unable to install because a newer version of this product is already installed." during installation. This was because we are trying to register the same COM+ dll's for a second time.
my batch file looked like this
msiexec /i Setup.msi TRANSFORMS=Test.mst MSINEWINSTANCE=1 /L*v logfile.txt

Hope this helps somebody else
LVL 40

Expert Comment

by:Vadim Rapp
ID: 22846648
Standard MSI does not preclude installing several versions of the same product. Software vendors  usually put some extra effort into preventing it - custom actions and such.

Without knowing all details, still maybe it would be possible to do by isolating conflicting components using side-by-side.

Author Comment

ID: 22892215
No comment
LVL 40

Expert Comment

by:Vadim Rapp
ID: 22892292
The question was fully answered. No reason to decrease the points.

Author Closing Comment

ID: 31511063
The double quotes resolved the syntax problem.

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
Among others, I monitor the Windows Installer zone and Installer zone. I find that many of the questions could be answered much more quickly if a Windows Installer verbose log were submitted with the question.   However, I do not always have t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now