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.
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

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

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the major drawbacks of deploying applications by GPO is the complete lack of any centralized reporting. After a normal deployment, there are two ways to find out if it was successful – by looking in the event log, and by looking in the log of…
Installations often have prerequisites, such as “Microsoft .Net framework is required for this product”. The usual implementation in MSI installations is system search for a particular registry setting representing the required prerequisite, followe…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

777 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