fazza
Posts: 12
Joined: Tue May 19, 2009 11:22 am

Show error when chained packages failed

Hi guys,

I have an AdvancedInstaller project that contains only chained package (two MSIs to be exact). The installer created is run on Full UI, but the chained package MSIs are run on silent mode. If one msi fails, the installation is rolling back, but the user does not receive any error. Is there a way to show an error box to the user to inform that the installation failed?

cheers,
Faried
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Show error when chained packages failed

Hi Faried,

If the type of installation is silent mode then no error message will be displayed if the MSI fails.
The solution is to change the type of installation to "Basic UI and progress" for each MSI included in the chained package.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fazza
Posts: 12
Joined: Tue May 19, 2009 11:22 am

Re: Show error when chained packages failed

Hi Mihai,

Thanks for your answer. I am still curious. In the Chained Packages tab you have "Rollback whole products installation if this package fails" option. It means that the Main MSI which is in Full UI knows about it and cancel the next MSI to be run. Am I correct? Is it possible for the Main MSI to say at least "Installation failed"? The underlying MSI failed and no error shown because it is run in silent mode (no UI) is expected.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Show error when chained packages failed

Hi Faried,
In the Chained Packages tab you have "Rollback whole products installation if this package fails" option. It means that the Main MSI which is in Full UI knows about it and cancel the next MSI to be run. Am I correct?
Yes , it is true and whole installation of the entire package will fail.
Is it possible for the Main MSI to say at least "Installation failed"?
The problem is that the user will not be informed about any error appeared during the installation of the chained packages.
This behavior is controlled entirely by Windows Installer.

However, you could try creating a custom action that executes on rollback to inform the user about the error.

Regards,
Mihai
Last edited by mihai.petcu on Tue Sep 21, 2010 12:45 pm, edited 1 time in total.
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fazza
Posts: 12
Joined: Tue May 19, 2009 11:22 am

Re: Show error when chained packages failed

mihai.petcu wrote: The problem is that the user will not be informed about any error appeared during the installation of the chained packages.
This behavior is controlled entirely by Windows Installer.

However, you could try creating a custom action that executes on rollback to inform the user about the error.
I see. I will try the custom action then. Thanks :D

Return to “Common Problems”