Jump to content
hatharry

Emby Service Updater

Recommended Posts

Luke

Insight about what?

Share this post


Link to post
Share on other sites
Volfan6415

Insight about what?

This being included in the main code.

Share this post


Link to post
Share on other sites
hatharry

@@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.

Share this post


Link to post
Share on other sites
Volfan6415

@@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

Share this post


Link to post
Share on other sites
Volfan6415

 

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

Share this post


Link to post
Share on other sites
hatharry

@@Volfan6415, Please test again

Edited by hatharry

Share this post


Link to post
Share on other sites
Volfan6415

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.

Share this post


Link to post
Share on other sites
hatharry

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"

Share this post


Link to post
Share on other sites
wyerd

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.

Share this post


Link to post
Share on other sites
JarvisTek

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.

Share this post


Link to post
Share on other sites
hatharry

@@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

Share this post


Link to post
Share on other sites
Volfan6415

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?

Share this post


Link to post
Share on other sites
hatharry

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

  • Like 1

Share this post


Link to post
Share on other sites
Quinky

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

Thanks for providing us with this wonderfull script!

Share this post


Link to post
Share on other sites
wyerd

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

Share this post


Link to post
Share on other sites
wyerd

@@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.

Share this post


Link to post
Share on other sites
hatharry

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

Edited by hatharry

Share this post


Link to post
Share on other sites
wyerd

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

Share this post


Link to post
Share on other sites
jordy

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

Share this post


Link to post
Share on other sites
jordy

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

Share this post


Link to post
Share on other sites
Happy2Play

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

Share this post


Link to post
Share on other sites
Volfan6415

So running the -installtask flag i get an error

 

 5899ea839ee85_powershellexception.png

Share this post


Link to post
Share on other sites

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...