vs00saini
Posts: 2
Joined: Tue Nov 27, 2012 6:39 pm

Exit setup after custom action is executed

Hi,

I am trying to create an customized installer. For same I placed custom dialog after PreparedDlg. In custom dialog, I had placed two radio buttons named radA and radB within radio-button group.

(1) If radA is selected I am launching .exe file using Execute custom action. I am able to do so by published events of Next button.

(2) If radB is selected the simple installation goes on following Install --- Progress --- Exit dialog.

In point (1) I want the entire setup to be exited after launching .exe file. I tried with Close the current dialog. But that only close the current dialog. In short, I am trying to achieve Team Viewer installer functionalities. Please guide me in that context.
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Exit setup after custom action is executed

Hi and welcome to Advanced Installer forum.

Unfortunately Windows Installer does not support what you need.

A solution for your problem would be to go in the Organization page select every feature and select the radio button "Install based on condition", then you set the condition on the "radB" value in your project. The only inconvenient is that the setup will not be entirely exited after the execution of the custom action, but it will not install anything more.

If you want to do exactly what you want, you must create your own EXE bootstrapper which based on two radio buttons choose to launch either the MSI created with Advanced Installer or the EXE you want to launch as a custom action.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vs00saini
Posts: 2
Joined: Tue Nov 27, 2012 6:39 pm

Re: Exit setup after custom action is executed

Thanks for sharing different solution views.

But I'm interested in solving it using Advanced Installer. So I think for solution as:

(1) If radA is selected I will not launch .exe file using Execute custom action.
(2) I had made setting as "Install based on condition". So no installation would occur in real (good point).
(3) So on clicking Next button of installer ---> Jump to ExitDialog. When user click on Finish button of ExitDalog, close the current dialog & execute custom action.

So I need your guidance for: How can I go to ExitDialog directly?
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Exit setup after custom action is executed

Hi

Unfortunately you can't jump even to ExitDialog. All the dialogs will appear, but there will nothing be installed.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”