Does silent install execute evrything? - Advanced Installer Community
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Does silent install execute evrything?

Hello,

I have created an installer which has a custom dialog. This custom dialog has a textbox with the property name set to it as PROPERTY_ABC. In case this custom property is passed in command-line, it will show in the textbox. When the Next button is clicked it executes a VBScript from the Custom Actions pane. This VBScript will set another property named PROPERTY_CONTINUE to Yes or No based on the textbox value. If the answer is no then it will not continue to the next dialog. If the installer is executed silently, what will happen? Will it execute the VBScript without sequence? Will it stop the installation if the answer is no? How to make this happen if executed silently?

:?:
K
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Does silent install execute evrything?

Hello,

Running the installer silently means all the actions called from UI (on buttons, init events, published events) will not be executed.

To get the same behavior even when the installer is run silently you can use custom actions with sequence for executing the script and evaluate the property set by the script.

For instance, you can make the following configuration:

1. Add an “Execute inline script code” custom action with sequence in “Install Execution Stage” after the “Searches” action group. Here you will put the VBScript, executed immediately with the “Execution Stage Condition” set not to execute in Full UI(using UILevel property):

Code: Select all

 UILevel<>5
2. Add a “Display error message” custom action with sequence after the “Paths Resolution” action group, executed immediately with the “Execution Stage Condition” set to stop the installation only if the property set by VBScript will have the value “NO” and is not executed in Full UI:

Code: Select all

PROPERTY_CONTINUE="NO" AND UILevel<>5
If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Does silent install execute evrything?

Thanks, this is very helpful. :D
K
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Does silent install execute evrything?

You're always welcome.

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

Return to “Common Problems”