Volfan6415 19 Posted January 24, 2017 Posted January 24, 2017 Insight about what? This being included in the main code.
hatharry 113 Posted January 25, 2017 Author Posted January 25, 2017 @@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 19 Posted January 25, 2017 Posted January 25, 2017 (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 January 25, 2017 by Volfan6415
hatharry 113 Posted January 25, 2017 Author Posted January 25, 2017 @@Volfan6415, Please test my updated PS script https://emby.media/community/index.php?/topic/27941-ps-windows-service-updater/?p=273674 1
Volfan6415 19 Posted January 26, 2017 Posted January 26, 2017 (edited) @@Volfan6415, Please test my updated PS script https://emby.media/community/index.php?/topic/27941-ps-windows-service-updater/?p=273674 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 January 26, 2017 by Volfan6415
hatharry 113 Posted January 26, 2017 Author Posted January 26, 2017 (edited) @@Volfan6415, Please test again Edited January 26, 2017 by hatharry
Volfan6415 19 Posted January 26, 2017 Posted January 26, 2017 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.
hatharry 113 Posted January 26, 2017 Author Posted January 26, 2017 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"
wyerd 11 Posted January 28, 2017 Posted January 28, 2017 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.
JarvisTek 3 Posted January 31, 2017 Posted January 31, 2017 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.
hatharry 113 Posted January 31, 2017 Author Posted January 31, 2017 @@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 19 Posted February 1, 2017 Posted February 1, 2017 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?
hatharry 113 Posted February 2, 2017 Author Posted February 2, 2017 @@Volfan6415, The script has been updated and now includes a task installer 1
Quinky 0 Posted February 2, 2017 Posted February 2, 2017 @@Volfan6415, The script has been updated and now includes a task installer Thanks for providing us with this wonderfull script!
wyerd 11 Posted February 3, 2017 Posted February 3, 2017 What version of PowerShell is required as the script fails when run on my Windows 7 SP1 PC?
hatharry 113 Posted February 3, 2017 Author Posted February 3, 2017 @@wyerd, it should work for you now.
wyerd 11 Posted February 5, 2017 Posted February 5, 2017 @@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.
hatharry 113 Posted February 5, 2017 Author Posted February 5, 2017 (edited) @@wyerd, can you run the script without "-installtask"? Edited February 5, 2017 by hatharry
wyerd 11 Posted February 5, 2017 Posted February 5, 2017 It accepts the command, but nothing happens. It's still running the old version.
jordy 284 Posted February 5, 2017 Posted February 5, 2017 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
jordy 284 Posted February 6, 2017 Posted February 6, 2017 3.1.4I 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 9780 Posted February 6, 2017 Posted February 6, 2017 Windows VersionsPublic: v3.1.5.0Beta: v3.1.295.0Dev: v3.1.6235.2624
Volfan6415 19 Posted February 7, 2017 Posted February 7, 2017 So running the -installtask flag i get an error
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now