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).
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
It doesn't actually have the $ signs around the ISSERVICERUNNING in the if block.
Check Service State for Themes (write result into variable TEST_SERVICE)
MessageBox: Testing Service, $TEST_SERVICE$
if Variable TEST_SERVICE Equals RUNNING
MessageBox: Test service..., is running!
end
Which works exactly as expected.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/