0

I want to install our software by running MyInstall.msi. I did this,

call msiexec.exe /i /a "MyInstall.msi"

enter image description here

/a is supposed to run as administrator. But after added this argument, the installing wasn't quiet anymore, even I added the -quiet argument. How do I use the adminstror to install the software quietily?

Zhang
  • 3,030
  • 2
  • 14
  • 31

2 Answers2

2

msiexec /a != Run as Administrator

/a tell the windows installer to to make an administrative install point (AIP), which is like creating a new, customized install image. You, generally, can preconfigure some installation choices for the AIP. Then, when someone installs the software from the AIP, all those choices are already made. Usually, you'd make the AIP available over the network, and client computers would install the application from there. I think you can also apply updates to the AIP, and all the clients that use the AIP will install the updates automatically.

This has nothing to do with "run as Administrator," which is about process elevation. msiexec.exe will usually need to run in an elevated context, but you either need to do that outside the script where you're invoking msiexec or have the script start an elevated process. (Some ideas for that can be found at: How can I auto-elevate my batch file, so that it requests from UAC administrator rights if required?.)

mojo
  • 4,050
  • 17
  • 24
0

/i and /a can't work together. just eliminate, would work fine.

call msiexec.exe /a "MyInstall.msi"
Zhang
  • 3,030
  • 2
  • 14
  • 31