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!

smishra
Posts: 4
Joined: Thu Jan 29, 2015 12:25 am

Running a command as part of install

Hi,
We are using the enterprise version of the advanced installer. As part of the install we install Node.JS as one of the pre-requisites. We have a requirement to install a npm module also as part of the install. Since npm modules can be installed by running the npm install command am not sure whats the best way to achieve this.

Also the npm install command can only be run if the pre-requisite (Node.JS) is already installed. Does anyone know how to run a command as part of a pre-requisite step?


Regards
Sujeet
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Running a command as part of install

Hello Sujeet,

To achieve what you need you can use a custom action to launch an install command. Please take a look on our "Launch a CMD or BAT file" article which should be useful. Next, if you want to conditionally (only when Node.JS is installed) launch the custom action, then you can add a search (SEARCH_PROP) in our "Search" page which will detect if Node.JS is installed. Finally, you can use the above search associated property (SEARCH_PROP) in the "Condition" field of your custom action.

Let us know if this helped, otherwise please give use more details about your scenario.

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

Return to “Building Installers”