• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2785
  • Last Modified:

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

  • 2
1 Solution
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.
error131Author Commented:
That did it, somtimes the smallest things cause the hardest problems.
Donald StewartNetwork AdministratorCommented:
Just remove "MsiExec.exe /i " from the command
error131Author Commented:
Thank You!
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.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now