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

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

error131Asked:
Who is Participating?
 
giltjrConnect With a Mentor Commented:
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
 
error131Author Commented:
That did it, somtimes the smallest things cause the hardest problems.
0
 
DonNetwork AdministratorCommented:
Just remove "MsiExec.exe /i " from the command
0
 
error131Author Commented:
Thank You!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.