aborting installation from script or from AI without msg - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

aborting installation from script or from AI without msg

Hi there,

I would like to know if there is a way to abort an installation on AI either using an vbscript, or from inside the AI, without using the "errormessage" custom action.

I'm running a script to do some check-ups and it will already pop-up a msgbox if something goes wrong, so after that I just want to abort the installation.

I've read a similar thread ( http://www.advancedinstaller.com/forums ... t+vbscript ) but that uses an errormessage custom action.

I've also tried to call the FatalError dialog if a property (set from my vbscript) is true, but that made 2 FatalErrors log to appear.

Thanks!
Marcelo
marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

Just found my answer.

i've created a "published event" on the button I needed calling "EndDialog" with the parameter Exit if my condition was true.


Just in case someone else is looking for the same thing.

Thanks,
Marcelo

Return to “Common Problems”