sjwells
Posts: 6
Joined: Thu Jun 23, 2005 12:04 pm

abort installation using inline script

What inline vbscript can i use to tell the installation to abort.
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hello,

There is no need for a VBScript to accomplish this because Advanced Installer already has a built-in Custom Action for this purpose.

To use it, right click a Standard Action and select the following menu item: New Custom Action -> Error Message.

Note that this does NOT work for some Standard Actions (like the Uninstall, Rollback, Install or Commit stages), so you must add the appropriate Standard Action using the Show Standard Action toolbar button.

In the Custom Actions Properties panel, you can enter the Message Text and the Execution Condition. After this message is displayed to the user, the installation is aborted.

Note that you must properly set the execution condition according to your requirements, otherwise the installation will always abort.

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
Jis
Posts: 51
Joined: Thu Dec 12, 2013 6:02 am

Re: abort installation using inline script

Hi,

I had a doubt for a similar scenario.

I have an advanced installer vbscript function which takes input from the user, were OK - continues the installation & ABORT - aborts the installation.
The function checks if a particular folder exist, and if the folder is missing it tells the user that the folder is missing, click OK(to continue installation)/Cancel(to abort).

Could you please help me out here.

Thanks in advance.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: abort installation using inline script

Hello,

To achieve what you need you should only modify your VBS code to return a value of 1 for success and of 3 for error.

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”