Installing applications in Quiet Mode

Heres another good one. A customer had a problem. He was trying to install an application using quiet mode….you know the syntax “XYZApp.msi /qn” which essentially does the install and doesn’t flag anything to the user. In this case it was DaRT so the installer looked like:

Msiexec /i MSDaRT.msi TARGETDIR=D:/MSDaRT /qn

The problem is that on Vista and Windows 7 the application requires elevation because you don’t have administrative privilege at that time. So as a handy tip, if the app doesnt invoke elevation within the MSI itself (cause thats now possible), a good way of achieving this is to execute an elevated command prompt first and then execute the MSI within that command shell.