if statement that works in debug but not in run
Posted: Fri Jul 20, 2007 5:50 pm
I have the following statements:
When I debug with MyService running, I get a message box stating that the service is RUNNING and I go into my if block (pops up another message box).
When I run with MyService running, I get a message box stating that the service is RUNNING but I do not go into my second if block (no message box stating i'm in the if block).
Code: Select all
Set Variable ISSERVICERUNNING to
Check Service State for MyService (write result into variable ISSERVICERUNNING)
MessageBox: $TITLE$, service: $ISSERVICERUNNING$
if Variable $ISSERVICERUNNING$ Equals RUNNING
MessageBox: $TITLE$, in if block
end
When I debug with MyService running, I get a message box stating that the service is RUNNING and I go into my if block (pops up another message box).
When I run with MyService running, I get a message box stating that the service is RUNNING but I do not go into my second if block (no message box stating i'm in the if block).