简体   繁体   English

NSIS安装程序错误标志

[英]NSIS Installer Error Flag

In some of the NSIS Installer documentation, it says that if some operation fails, the error flag will be set. 在某些NSIS安装程序文档中,它表示如果某些操作失败,将设置错误标志。 Is the error flag just a boolean value or is a specific code that indicates what error occurred? 错误标志只是一个布尔值,还是一个指示发生了什么错误的特定代码? If it is a code, how do I access it to log it out? 如果是代码,如何访问它以将其注销?

It is just a boolean flag, use ClearErrors , IfErrors and SetErrors to clear/detect/set it. 它只是一个布尔标志,使用ClearErrorsIfErrorsSetErrors来清除/检测/设置它。 (This flag is set by the internal instructions, most plugins use other methods but it is also possible for a plugin to set/clear it) (此标志由内部指令设置,大多数插件使用其他方法,但插件也可以设置/清除它)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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