Nonary / AutoHDRSwitch

Automates turning off HDR on host if the Moonlight client is asking for an SDR stream.
63 stars 1 forks source link

Install/Uninstall scripts assume Sunshine is installed in the default location (C:\Program Files) #2

Open arvindhmani opened 10 months ago

arvindhmani commented 10 months ago

Installation and uninstallation will fail when the Sunshine app is installed anywhere except the default location, because of the hard-coded path to the conf file in the .ps1 script.

A potential fix could be to first find the location of the installed service by using this Powershell cmdlet: Get-Service "Sunshine Service" | Select-Object BinaryPathName

Store the output in a variable, then use this path to find the sunshine.conf location.

Andrige3 commented 6 months ago

I have the same issue! I like the solution implemented in the resolutionswapper script where you can specify the location of the .conf file.

gutenhuu commented 1 month ago

same here (and thanks for all the amazing automation processes for Sunshine)