Custom Action: XXX is not recognized as an internal or external command - Advanced Installer Community
lagudi
Posts: 2
Joined: Mon Feb 10, 2020 12:05 pm

Custom Action: XXX is not recognized as an internal or external command

I'm newbee in AI
I have a question.
While i install my app, Nodejs is installed too as prerequisite.
At step Finish Dialogs Stage, a Custom Action (.bat file) that has "npm install" command is run.
However, I got an error "npm is not recognized as an internal or external command"
If I open a new command-line and then run "npm install", it works.

Why PATH be not updated yet at "Finish Dialogs Stage" where a custom action is run?

Please help me how can I do to "npm install" works from my custom action?.
lagudi
Posts: 2
Joined: Mon Feb 10, 2020 12:05 pm

Re: Custom Action: XXX is not recognized as an internal or external command

I fixed by adding nodejs to PATH environment in .bat file
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Custom Action: XXX is not recognized as an internal or external command

Hello and welcome to Advanced Installer forums,

Thank you for your followup on this and for sharing your solution with us.

I am glad you got this working!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”