jellyfin / jellyfin-server-windows

The Windows tray app and installer for Jellyfin Server on Windows.
https://jellyfin.org
MIT License
79 stars 26 forks source link

Server installer: add command line option for install in basic mode #109

Open soredake opened 4 months ago

soredake commented 4 months ago

Right now, I can't find an option to force basic mode installation instead of default service mode in Windows installer.

anthonylavado commented 4 months ago

I don't think that's exposed as a value, since the installer is custom written in NSIS. Is there a particular reason you'd like that? Is it for automation?

soredake commented 4 months ago

Is there a particular reason you'd like that?

Jellyfin installed in service mode does not have access to external disks, which is dealbreaker for me.

anthonylavado commented 4 months ago

Right, when you open the installer and run it through the dialogs, you can choose basic mode. In fact, that should be the default.

Is that not working? Just trying to understand how I can help 🙂

edit: unless you're asking for a way to "convert" one to the other. It's not easily done, which is why the install doesn't offer that option. It's usually recommended to start over... I can provide some help but it might be more difficult.

anthonylavado commented 4 months ago

Instead of another edit, just an extra comment. I misread the title and didn't realize you were asking about doing it from the command line.

I don't believe we have any arguments for CLI support. I can add some, but for first installs it's probably best to just go through the GUI dialogs. After that, upgrades keep the same type (basic or service).

Going back to my original question, just out of curiosity, is it to script the install for automation purposes, or...?

soredake commented 4 months ago

In fact, that should be the default.

The default for silent installation seems to be the service mode, I installed jellyfin from winget (it passes only "/S" when doing silent install) and it resulted in service-mode installation.

is it to script the install for automation purposes

Yes, I install software using winget.