• November 13, 2018, 08:34:57 AM
  • 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 5752 times)

GreenBay42

  • Administrator
  • Level 8 Member
  • *
  • Posts: 1484
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

  • Level 1 Member
  • *
  • Posts: 2
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: 38
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: 7
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: 46141
  • D-Link Global Forum Moderator
    • New DIR-890L Router with SmartConnect™ Technology
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
"Nothing Funny about It...." We are not here to Impress anyone! You have a be a COMPETENT user first to under stand COMPETENT help!

besweeet

  • Level 1 Member
  • *
  • Posts: 7
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: 46141
  • D-Link Global Forum Moderator
    • New DIR-890L Router with SmartConnect™ Technology
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
"Nothing Funny about It...." We are not here to Impress anyone! You have a be a COMPETENT user first to under stand COMPETENT help!

besweeet

  • Level 1 Member
  • *
  • Posts: 7
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 8 Member
  • *
  • Posts: 1484
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: 7
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: 46141
  • D-Link Global Forum Moderator
    • New DIR-890L Router with SmartConnect™ Technology
Re: Run as Windows Service
« Reply #40 on: September 14, 2018, 06:35:37 PM »

Enjoy.  ;)
Logged
"Nothing Funny about It...." We are not here to Impress anyone! You have a be a COMPETENT user first to under stand COMPETENT help!
Pages: 1 2 [3]