Jump to content

Emby Service Updater


Recommended Posts

Volfan6415
Posted

Insight about what?

This being included in the main code.

Posted

@@Volfan6415, The PS download's the web installer, installs emby, kill's the foreground process then starts the service. The exe download's the offline zip and restarts emby.

The latest releases do not support updating when starting as a service.

Volfan6415
Posted (edited)

@@Volfan6415, The PS download's the web installer, installs emby, kill's the foreground process then starts the service. The exe download's the offline zip and restarts emby.

The latest releases do not support updating when starting as a service.

So something in the latest builds doesn't let the auto server update exe work? What is the reason for disabling the update while running as service? I thought that was the whole point of the Emby server updated exe. Edited by Volfan6415
Volfan6415
Posted (edited)

 

When trying to run the powershell script i am getting the following error Message 

 

Test-Path:Cannont Bind argument to parameter 'Path' because it is an empty string.  ..... at line 74 Char:23

if (Test-Path $this.location) {

Edited by Volfan6415
Posted (edited)

@@Volfan6415, Please test again

Edited by hatharry
Volfan6415
Posted

Script worked that time.  If i create a scheduled task will the task run and work is the user is not logged on?  I run emby on a windows server that normally does not have a user logged on.

Posted

Script worked that time.  If i create a scheduled task will the task run and work is the user is not logged on?  I run emby on a windows server that normally does not have a user logged on.

 

Scheduled Task should work fine. Make sure you check "run with highest privileges"

Posted

It's not working for me either since 3.1.4.0. It stops and restarts the Emby service, but the update isn't loading or running.

Posted

Update manually this go-round. Looks like there's another .Net dependency that probably prevents the auto-updater from being able to continue (accepting EULA, etc). Maybe this can get rolled in to the server build so that there's tighter integration with devs knowing when a random wrench in the works (like this) will be incoming.

Posted

@@JarvisTek, The main code was changed so the service can restart without the worry of a update installing and not starting correctly. I redesigned the update process and made a pull request. You can use the PS script here

Volfan6415
Posted

Scheduled Task should work fine. Make sure you check "run with highest privileges"

 

 

Hey so i set up a scheduled task to run and checked the box "run with highest privileges" but it doesn't seem to be working.  If i login to the server and run with powershell the script works.  But from scheduled tasks it doesn't appear to work.  Also the task says "running" and i have to manually end the task.

 

Any ideas on where to look to see what is causing the issue.  Also want to note that this is running on a windows server where there are no accounts logged in to console at the time the task runs.

 

Thoughts?

Posted

@@Volfan6415, The script has been updated and now includes a task installer

  • Like 1
Posted

@@Volfan6415, The script has been updated and now includes a task installer

Thanks for providing us with this wonderfull script!

Posted

What version of PowerShell is required as the script fails when run on my Windows 7 SP1 PC?

Posted

@@wyerd, it should work for you now.

Still can't get it to work. When I run the script I get "unexpected token '-installtask' in expression or statement.

Posted (edited)

@@wyerd, can you run the script without "-installtask"?

Edited by hatharry
Posted

It accepts the command, but nothing happens. It's still running the old version.

Posted

What Version? I haven't seen a Dev update for over a week now. Think they've gone to sleep ;) I'm on version 3.1.6235.2624 Dev

Posted

3.1.4

I think beta is up to 3.1.5 so should work. I know hatharrys script works for me on win10 (manually) when an update is available. I have setup a task to run the script once a day, but won't know if that works until the next Dev update...

 

Sent from my HUAWEI MT7-L09 using Tapatalk

Happy2Play
Posted

Windows Versions
Public: v3.1.5.0
Beta: v3.1.295.0
Dev: v3.1.6235.2624

Volfan6415
Posted

So running the -installtask flag i get an error

 

 5899ea839ee85_powershellexception.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...