#1
|
|||
|
|||
PSInfo
I am trying to run "PSInfo -s" command on a remove server to get an list of all application on the server. I keep getting a return code of 1. I do get the list I need from this command. I just added that an exit code of 1 is successful.
Is this correct or does this mean that its erroring out? Also is there an event that I can trap for that will give me the current output of this action in a variable so that I can do a string lookup. Or do I just have to read in the log file that is created? The perpose of this is I want to check to see if the software exists before running an uninstall command. If I just run an uninstall command on a remote server the build just hangs. Thanks, Craig |
#2
|
|||
|
|||
The 1 exit code is being returned by psInfo, so whether this is actualy an error or not depends on this application...
THe RUNPROGRAM_EXITCODE temporary macro can be used to see the ExitCode of the last Run Program step, the LASTSTEP_OUTPUT temporary macro contains the output. |
|
|