Luke 37050 Posted January 24, 2017 Share Posted January 24, 2017 Insight about what? Link to comment Share on other sites More sharing options...
Volfan6415 17 Posted January 24, 2017 Share Posted January 24, 2017 Insight about what? This being included in the main code. Link to comment Share on other sites More sharing options...
hatharry 84 Posted January 25, 2017 Author Share 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. Link to comment Share on other sites More sharing options...
Volfan6415 17 Posted January 25, 2017 Share 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 Link to comment Share on other sites More sharing options...
hatharry 84 Posted January 25, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
Volfan6415 17 Posted January 26, 2017 Share 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 Link to comment Share on other sites More sharing options...
hatharry 84 Posted January 26, 2017 Author Share Posted January 26, 2017 (edited) @@Volfan6415, Please test again Edited January 26, 2017 by hatharry Link to comment Share on other sites More sharing options...
Volfan6415 17 Posted January 26, 2017 Share 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. Link to comment Share on other sites More sharing options...
hatharry 84 Posted January 26, 2017 Author Share 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" Link to comment Share on other sites More sharing options...
wyerd 11 Posted January 28, 2017 Share 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. Link to comment Share on other sites More sharing options...
JarvisTek 3 Posted January 31, 2017 Share 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. Link to comment Share on other sites More sharing options...
hatharry 84 Posted January 31, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
Volfan6415 17 Posted February 1, 2017 Share 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? Link to comment Share on other sites More sharing options...
hatharry 84 Posted February 2, 2017 Author Share Posted February 2, 2017 @@Volfan6415, The script has been updated and now includes a task installer 1 Link to comment Share on other sites More sharing options...
Quinky 0 Posted February 2, 2017 Share Posted February 2, 2017 @@Volfan6415, The script has been updated and now includes a task installer Thanks for providing us with this wonderfull script! Link to comment Share on other sites More sharing options...
wyerd 11 Posted February 3, 2017 Share Posted February 3, 2017 What version of PowerShell is required as the script fails when run on my Windows 7 SP1 PC? Link to comment Share on other sites More sharing options...
hatharry 84 Posted February 3, 2017 Author Share Posted February 3, 2017 @@wyerd, it should work for you now. Link to comment Share on other sites More sharing options...
wyerd 11 Posted February 5, 2017 Share 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. Link to comment Share on other sites More sharing options...
hatharry 84 Posted February 5, 2017 Author Share Posted February 5, 2017 (edited) @@wyerd, can you run the script without "-installtask"? Edited February 5, 2017 by hatharry Link to comment Share on other sites More sharing options...
wyerd 11 Posted February 5, 2017 Share Posted February 5, 2017 It accepts the command, but nothing happens. It's still running the old version. Link to comment Share on other sites More sharing options...
jordy 284 Posted February 5, 2017 Share 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 Link to comment Share on other sites More sharing options...
wyerd 11 Posted February 5, 2017 Share Posted February 5, 2017 3.1.4 Link to comment Share on other sites More sharing options...
jordy 284 Posted February 6, 2017 Share 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 Link to comment Share on other sites More sharing options...
Happy2Play 8278 Posted February 6, 2017 Share Posted February 6, 2017 Windows VersionsPublic: v3.1.5.0Beta: v3.1.295.0Dev: v3.1.6235.2624 Link to comment Share on other sites More sharing options...
Volfan6415 17 Posted February 7, 2017 Share Posted February 7, 2017 So running the -installtask flag i get an error Link to comment Share on other sites More sharing options...
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