Closed michaelmaston closed 10 months ago
Depending on when you installed using the installer, you will find an upgrade OctoPrint batch file with a shortcut in the start menu. Otherwise you have to do it manually by stopping the service and running the command.
I gave details on how to get and modify the upgrade batch file at the issue/comment linked below.
https://github.com/jneilliii/OctoPrint-WindowsInstaller/issues/11#issuecomment-1610570339
one thing of note, the token should point to the python.bat file inside your installation folder. so the file would look something like this.
@echo off
cls
@echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@echo !!! !!!
@echo !!! An attempt will be made to stop all OctoPrint services, you may be !!!
@echo !!! prompted for admin priviledges for each instance as the process proceeds. !!!
@echo !!! !!!
@echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
pause
FOR %%f IN (OctoPrintService*.exe) DO ((Echo "%%f" | FIND /I "OctoPrintService.exe" 1>NUL) || (%%f stop))
pause
cls
@echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@echo !!! !!!
@echo !!! Starting upgrade process... !!!
@echo !!! !!!
@echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
call "C:\OctoPrint\WPy64-31050\scripts\python.bat" -m pip install --upgrade octoprint
@echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@echo !!! !!!
@echo !!! Upgrade process completed, if there are any errors listed above the !!!
@echo !!! upgrade probably failed, use the error information to open an issue on !!!
@echo !!! GitHub: https://github.com/jneilliii/OctoPrint-WindowsInstaller !!!
@echo !!! !!!
@echo !!! An attempt will now be made to start all OctoPrint services. !!!
@echo !!! !!!
@echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
pause
FOR %%f IN (OctoPrintService*.exe) DO ((Echo "%%f" | FIND /I "OctoPrintService.exe" 1>NUL) || (%%f start))
pause
Found the menu item to do the upgrade and that worked like a charm. Didn't even realize that was there. Thanks so much for the speedy help and doing this project in the first place. Much appreciated!
Is the normal way to update to a new version of Octoprint through the web UI when it prompts you or installing a newer version of this Windows installer? Or something else? I find using the Web UI update fails on my system with some sort of permissions problem (could be my system has an issue) If I just grab the new build installer here it seems to be designed for new installs, not updates so I get asked to pick a new port because the existing instance is using 5000 already. If I don't want a new instance, I'm missing how I am supposed to do that in the current installer. Guidance appreciated!