Hello,
For this, you can create an
installation log. By doing this, you will be able to track down what causes your installation to fail (if it fails). For instance, you can have a look on the
"Logging of Action Return Values" Microsoft article which will help you in checking what went wrong (for instance, if an action returns the value 3, it means that it failed. If the action failed, the main package will also fail).
Also, another article which I think you may find useful is
"How Do I Read a Windows Installer Verbose Log File?".
Hope this helps.
All the best,
Catalin