[英]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? 如何检查使用NSIS可以从PATH访问命令行应用程序?
In this particular case, I want to check if node
is accessible from within the terminal. 在这种特殊情况下,我想检查是否可以从终端内访问node
。
I thought about executing > where node
and comparing the result with INFO: Could not find files for the given pattern(s).
我考虑过执行> where node
并将结果与INFO: Could not find files for the given pattern(s).
进行比较INFO: Could not find files for the given pattern(s).
however there might be a better way using NSIS functions. 但是,使用NSIS功能可能会有更好的方法。
SearchPath指令使用SearchPath()在系统路径中搜索文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.