简体   繁体   中英

NSIS: Check that a command is on the PATH

How can I check that a command line application is accessible from the PATH with NSIS?

In this particular case, I want to check if node is accessible from within the terminal.

I thought about executing > where node and comparing the result with INFO: Could not find files for the given pattern(s). however there might be a better way using NSIS functions.

SearchPath指令使用SearchPath()在系统路径中搜索文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM