MSI Package object example: If an element is created to install an msi file and the package has subsequently been un-published, this message would be received at the time that the script attempts to execute the element. Under these circumstances an error code 3 would be expected since it cannot find the msi file because it is not published.
File Operations Object example: If an element is set to run at logoff, and the destination path used is a mapped drive, the mapped drive would have been disconnected already when the logoff even initiates. Since the mapped drive is disconnected, the file operation will not be able to use it to locate the destination path. Use the UNC path to the mapped drive instead of the mapped drive itself.