Search code examples
windows-installernsis

Why is "msiexec /qn" still showing a command prompt ?


I want to use this msiexec command in my NSIS script to install a MSI package quietly.

Exec '"msiExec" /qn /package "$INSTDIR\mypackage.msi"  INSTALLDIR="$destinationDir"'

But it still showing the command prompt for a split second.
I also tried the parameter /quiet but there was no difference.

Is there an other way to install the MSI package "full" quietly?


Solution

  • Exec '"msiExec"' does not show a console on my system.

    Could it be a custom action in the msi? If you monitor the system with Process Monitor and use Ctrl+T you should be able to see who the parent of conhost.exe is on Windows7+