I'm trying to install the NodeJS runtime on the target machine, set an installer variable* from the output of a JS script using setInstallerVariableFromScriptOutput, then install more components that depend on the new variable.

How can I do this? I don't see an opportunity to run an Action after my NodeJS component installs, but before other components do.

  • This variable gets reused in a whole bunch of components and actions, so it does need to be set in a single central place

asked 06 Oct '15, 16:30

spiffytech's gravatar image

accept rate: 100%

Hi spiffytech,

The action lists of each components are executed following the order that they are declared. So you can use the setInstallerVariableFromScriptOutput action in the first component and add a rule in those actions that you want to execute depending of the setInstallerVariableFromScriptOutput value.

Find more information about that in our User Guide: http://installbuilder.bitrock.com/docs/installbuilder-userguide.html#_main_project_and_components_execution_order

Also, another option could be putting the NodeJS in a separate component/folder, and in its readyToInstallActionList use the unpackDirectory to extract the NodeJS in a temporary folder (using ${system_temp_directory}), execute the setInstallerVariableFromScriptOutput, select/deselect the components depending of the output and finally delete those files extracted.

You can get more information in the link below: http://installbuilder.bitrock.com/docs/installbuilder-userguide.html#_unpacking_before_installation_time

Also, could you provide us with more information what you want to achieve?


answered 08 Oct '15, 05:39

jesus's gravatar image

jesus ♦♦
accept rate: 18%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 06 Oct '15, 16:30

Seen: 1,070 times

Last updated: 08 Oct '15, 05:39