• March 28, 2024, 04:07:00 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Pages: 1 2 [3]

Author Topic: Run as Windows Service  (Read 24461 times)

GreenBay42

  • Administrator
  • Level 11 Member
  • *
  • Posts: 2752
Re: Run as Windows Service
« Reply #30 on: November 08, 2017, 07:46:27 AM »

Thanks for the find. I am glad you found the issue cuz it was bugging me. I will let tech support know and maybe better installation instructions can be included with the software download.
Logged

Datre

  • Guest
Re: Run as Windows Service
« Reply #31 on: December 29, 2017, 04:39:43 PM »

For me (Windows 8.1 64bits), the method of arthurlin43 did not work properly.
I had to run LoaderServiceSetup.msi as administrator (install.bat was not enough). Then, I ticked the box "Run a Windows Service", but at startup Windows, Monitor launched anyway asking for a privilege elevation. The service did not seem to start.

I used another method that worked the first time:
- Launch LoaderServiceSetup.msi and uninstall.
- Download NSSM v2.24 (https://nssm.cc/)
- Copy of nssm.exe into C:\Program Files (x86)\D-Link\D-ViewCam
- As administrator, run nssm.exe install D-ViewCam (We can put a name other than D-ViewCam).
- In path, indicate where MainConsole.exe is located


We can also put the service in delayed start.

To create the service, click on "Install service"

Start the task manager. Boot tab, select D-ViewCam (if present) and disable it.


Finally, either start the D-ViewCam service in the service manager or reboot.
« Last Edit: December 29, 2017, 04:42:50 PM by Datre »
Logged

Red90

  • Level 2 Member
  • **
  • Posts: 55
Re: Run as Windows Service
« Reply #32 on: December 30, 2017, 07:06:35 AM »

When I run it as a service, the main console starts to run before you log in, so there is no need or possibility for it to ask for elevated privileges.  You do not need to do any of the things you describe.

FYI, it does not actually "run as a service".  It simply starts the main console PROGRAM when the computer is booted up, before logging in.  It is not a service, but a normal program.
Logged

besweeet

  • Level 1 Member
  • *
  • Posts: 9
Re: Run as Windows Service
« Reply #33 on: September 13, 2018, 07:53:43 PM »

When I enable "run as Windows service," Main Console doesn't start upon login. There is no EXE in Task Manager that represents it. I've already added a shortcut to MainConsole.exe in my startup folder. I simply want it to start upon login. There's only one Windows account on the machine.
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Run as Windows Service
« Reply #34 on: September 14, 2018, 08:16:50 AM »

Have you tried the service method suggested by Datre?

When I enable "run as Windows service," Main Console doesn't start upon login. There is no EXE in Task Manager that represents it. I've already added a shortcut to MainConsole.exe in my startup folder. I simply want it to start upon login. There's only one Windows account on the machine.
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

besweeet

  • Level 1 Member
  • *
  • Posts: 9
Re: Run as Windows Service
« Reply #35 on: September 14, 2018, 08:18:51 AM »

Have you tried the service method suggested by Datre?

Not yet. I figured the built-in "run as Windows service" feature would work as you think it would. Will give it a shot later.
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Run as Windows Service
« Reply #36 on: September 14, 2018, 08:21:50 AM »

What version of DVC are you using?
What version of Windows and platform?
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

besweeet

  • Level 1 Member
  • *
  • Posts: 9
Re: Run as Windows Service
« Reply #37 on: September 14, 2018, 08:22:41 AM »

What version of DVC are you using?
What version of Windows and platform?

4.2.1 on a clean install of of Windows 10 Pro x64 (all available updates have been installed).
Logged

GreenBay42

  • Administrator
  • Level 11 Member
  • *
  • Posts: 2752
Re: Run as Windows Service
« Reply #38 on: September 14, 2018, 08:57:41 AM »

Run as windows service will not launch it, it only runs it in the background when the computer is booted.

Under settings > General > Startup make sure Main Console is checked. This will launch it after you log in.
Logged

besweeet

  • Level 1 Member
  • *
  • Posts: 9
Re: Run as Windows Service
« Reply #39 on: September 14, 2018, 04:44:35 PM »

Run as windows service will not launch it, it only runs it in the background when the computer is booted.

Under settings > General > Startup make sure Main Console is checked. This will launch it after you log in.

Perfect! I've disabled the service checkbox and enabled the Main Console checkbox and it's launching upon login like I'm wanting. Thanks.
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Run as Windows Service
« Reply #40 on: September 14, 2018, 06:35:37 PM »

Enjoy.  ;)
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

Red90

  • Level 2 Member
  • **
  • Posts: 55
Re: Run as Windows Service
« Reply #41 on: November 21, 2018, 07:17:10 AM »

When it is set as "run as service", it starts before logon, but also stays running after logon.  You can open it after logon by right clicking the icon on the taskbar.  I've been running this way for a long time.
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Run as Windows Service
« Reply #42 on: November 26, 2018, 02:11:34 PM »

 ;)
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.
Pages: 1 2 [3]