Our installer (Let us say 'X') has fllowing custom action which will uninstall some other product (Let us say Y) after the installation of X is completed
CustomAction Id="RemoveProductY" ExeCommand="msiexec /quiet /x [PRODUCTCODEOFPRODY]" Directory="TARGETDIR" Return="asyncNoWait" Impersonate="no" Execute ="commit"
It work perfectly when I install it normally but fails only when I install it silently.
Works : msiexec /i X.msi
Fails : msiexec /qn /i X.msi
Please help me with this