This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: Error when Register a Window service
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 18, 2013
10:45 AM
Error when Register a Window service
I'd like to register a window service by Action "Register Window Service", For the "Executable to Register as window service", for example, if I set it as $USER_INSTALL_DIR$\xyz.exe, the service can be registered successfully. but if I want add an argument for the executable, such as $USER_INSTALL_DIR$\xyz.exe $USER_INSTALL_DIR$\abc.config, then there are below error in log:
Additional Notes: NOTE - Unable to locate executable to register as NT service. Deferring...
Then how can I register a service which use an executable with argument?
Additional Notes: NOTE - Unable to locate executable to register as NT service. Deferring...
Then how can I register a service which use an executable with argument?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 18, 2013
12:12 PM
You may want to enclose the arguments in quotes if there is a space in the path.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 20, 2013
10:05 AM
greenaj wrote:
You may want to enclose the arguments in quotes if there is a space in the path.
Then it should be "$USER_INSTALL_DIR$\xyz.exe $USER_INSTALL_DIR$\abc.config"? or "$USER_INSTALL_DIR$\xyz.exe" "$USER_INSTALL_DIR$\abc.config"?
I tried, If I use $USER_INSTALL_DIR$\xyz.exe, the service can be registerred successfully, but $USER_INSTALL_DIR$\xyz.exe abc.config will fail.