Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Service Path for ServiceAddService


1 reply to this topic

mcintirk

mcintirk
  • Members
  • 1 posts

Posted 02 February 2005 - 00:03

I have an IS X project that installs/removes a number of services. Some of these services have command line arguments that include path names ("c:\ktas" ...) When installing and registering a service, the SCM seems to require that all paths use "\\" instead of "\". because the "\\" is magically transformed to "\" when it is passed to the actual service executable.

My problem is that IS is also magically transforming the "\\" instances in the string I am passing to ServiceAddService for the path name. It installs the service, but it does not start because the "\\" are now turned into "\".

This appears to be something that IS does to string variables, not something that ServiceAddService is doing.

Are there any ways to avoid this behavior? I have attached my script that calls ServiceAddService.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 02 February 2005 - 09:57

Did you try "\\\\"