TechieGuy12 / PlexServerAutoUpdater

Automatically update Plex when running the Plex service.
MIT License
118 stars 10 forks source link

Plex Service not Installed #59

Closed sbeaudoin closed 1 year ago

sbeaudoin commented 1 year ago

What I did

What occured

What was expected

sbeaudoin commented 1 year ago

Looking at the code, I see the parameter name is configusing. It is not the service name, but the display name of the installation package.

As my installation package was "Plex Media Server 1.29.1.6316 (x64)", I changed the "PlexServiceName" to that and it does not change nothing.

Looked at the registry key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{688e1d8f-188e-49cd-83ca-2669a7e3f8cc}_is1", and the display name is correctly "Plex Media Server 1.29.1.6316 (x64)".

TechieGuy12 commented 1 year ago

For the service name specified in the config file, you will need to use the value that is displayed in the service properties:

image

sbeaudoin commented 1 year ago

Oh! Yes, it did work. I suggest to make a service selection list available. This would show all services installed who point to nssm,exe. This would be easier than change a config file without remembering there is a display name and a service name and use the wrong one, as I did.

TechieGuy12 commented 1 year ago

Plex can be installed as a service without using NSSM so I would need to list all services to ensure I won't miss any. This also wouldn't work when running the updater from a command line.

Instead, I'll update the code so either the service name or display name can be used to identify the service.