edgsoccer
Posts: 32
Joined: Wed Jul 02, 2014 11:07 pm

close the installation without warnings

Hello,

I have a special request... I need to be able to close the installation without prompt if i want to cancel installation and the user cancel the installation window. Actually I'm just running custom actions to buttons that trigger other actual installations so for this one i'm not going to install anything only use the installer to have buttons for user to trigger the installations in order. is there a way to accomplish what i need.. thanks
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: close the installation without warnings

Hello,

You can abort the installation by using a "Display error message" custom action. Also, you can use your own custom action which will return an exit code different than 0.

Let us know if this helped, otherwise please give us more details (maybe exemplify a bit more) about what you are trying to achieve.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
edgsoccer
Posts: 32
Joined: Wed Jul 02, 2014 11:07 pm

Re: close the installation without warnings

Can you help me on how to do a custom action which will return an exit code different than 0 when i click on the x to exit or close the window. thanks
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: close the installation without warnings

Hi,

You can take a look on the how to Abort the Install on message box response thread which debates a similar problem. In your case, you can use only the VBS custom action (exit.vbs file) attached there.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
edgsoccer
Posts: 32
Joined: Wed Jul 02, 2014 11:07 pm

Re: close the installation without warnings

Hello,

Yes that would allow me to create a close button on my application that would close it but can i do it from the close (x) or hide it so people cant click on the (x).
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: close the installation without warnings

Hi,

I'm afraid that the "X" button can be hidden only if you use other than the "System" frame for your theme in the "Themes" page. You can achieve this as described in the "Dialogue Page - Some question" thread.

Also, if you want the confirmation dialog not to be displayed when the user clicks the "Cancel" or the "X" buttons, you can go in the "Dialogs" page, select the "Cancel" button of each dialog, then add a new "Close the current dialog" published event and choose the "Exit" argument for it. After that, remove the default "Display a specific child dialog" published event that has the "CancelDlg" argument.

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

Return to “Common Problems”