NISetError - Example
If (... Drive exists ...)
...
Else
NiSetError("Drive not found")
If the condition "... Drive exists ..." is not met the NiSetError command will be executed like this:
- The text NiSetError->Drive not found will be written to the current log file.
- Then the NetInstall variable WSS.ERRORTEXT gets the value Drive not found.