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,581 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
ID: 24357170
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
ID: 24357212
That did it, somtimes the smallest things cause the hardest problems.
0
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 24357249
Just remove "MsiExec.exe /i " from the command
0
 

Author Closing Comment

by:error131
ID: 31580249
Thank You!
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to batch remove spreadsheet password 19 207
CMD BAT file script SET / Delayed Expansion issue in FOR/DO construct 4 40
Where is Outlook in Paperport 14? 8 58
batch script 3 38
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

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