Skip to content
⌘ NSIS Forum Archive

Escape character

2 posts

n.s.#

Escape character

Hi,

I want to check if a particular service is running. For this I use the NsSCM plugin. In particular, I want to check if an MSDE instance is running.

The problem is that the name of the service contains the '$' character. The name of the service in my case is MSSQL$MYINSTANCE.

But when i for example use the following line:
nsSCM::QueryStatus /NOUNLOAD "MSSQL$MYINSTANCE", I get the following error:
unknown variable/constant "MYINSTANCE" detected

Does anyone know how I can solve this problem?


Best regards,

n.s.