Solved

Getting c:\windows\msiexec.exe is not a valid win32 application when trying to install an msi from a .bat file

Posted on 2009-05-11
4
2,536 Views
Last Modified: 2013-12-12
I have a .msi package that I am trying to install via a .bat file. When I run the file on any machine it gives me the error: C:\WINDOWS\MSIEXEC.EXE Is not a valid Windows32 Application.
I have virus software turned off and am an administrator on the domain and the local machine.
Any thoughts would be helpful.
MsiExec.exe /i "\\server\mysoftware.msi" /qn SERIALNUMBER=xxxxx-xxxxxxx

Open in new window

0
Comment
Question by:error131
  • 2
4 Comments
 
LVL 57

Accepted Solution

by:
giltjr earned 500 total points
Comment Utility
Not sure, but on the couple of PC's I checked msiexec.exe is in c:\windows\system32, not in c:\windows

You may want to make sure that a rouge/bad copy of msiexec.exe has not been placed in c:\windows.
0
 

Author Comment

by:error131
Comment Utility
That did it, somtimes the smallest things cause the hardest problems.
0
 
LVL 47

Expert Comment

by:dstewartjr
Comment Utility
Just remove "MsiExec.exe /i " from the command
0
 

Author Closing Comment

by:error131
Comment Utility
Thank You!
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Let’s list some of the technologies that enable smooth teleworking. 
If your app took Google’s lash recently, here are the 5 most likely reasons.
The viewer will learn how to set up a document for the web and print and the recommended PPI for printing.
Viewers will learn how to use the Hootsuite Dashboard.

772 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

11 Experts available now in Live!

Get 1:1 Help Now