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.

Set path and registrer file as service

1 reply to this topic


  • Members
  • 7 posts

Posted 07 July 2004 - 07:39

Hi! All,

I need to register a .exe file as a service. To register that file i need to set a path in the Environment Variable. I used SetEnvPath and RefreshEnvironment from the sample code downloaded from here this works perfectly fine. i then register the .exe file as a service thru the script, the service is not registering. Is what i am doing correct?? why is not the file getting registered. i use the following code to register the file.

LaunchAppAndWait("\"" + TARGETDIR ^ "myfile.exe" + "\""," /Service",WAIT) < 0


Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 07 July 2004 - 13:36

That application has to support the /Service switch and know what to do when it is present. It's not something that automatically comes free with Windows.

Edited by Taco Bell, 07 July 2004 - 13:36.

user posted image