immense / Remotely

A remote control and remote scripting solution, built with .NET 8, Blazor, and SignalR.
GNU General Public License v3.0
4.54k stars 1.61k forks source link

Install / Uninstall / Config Issues #660

Open darkpixel opened 1 year ago

darkpixel commented 1 year ago

Describe the bug I have issues with installing silently, uninstalling, and configuring.

If I spin up an instance of mmybot/remotely:latest, and go through the brief setup, I can download the Remotely_Installer.exe to a machine, launch it, enter my Server URL, and Organization ID and everything works perfectly... I see Remotely in Add/Remove Programs, and I see a Remotely Service in Windows Services. If I launch the Remotely_Installer.exe again, it gives me the option to uninstall. The services, processes, and files disappear as they should.

On the other hand, if I attempt to use the provided documentation for silently installing:

Remotely_Installer.exe -install -quiet -organizationid "93956990-a9c3-4d8f-1246-9b34555a4aaf" -serverurl "http://192.168.0.5:5000"

The installer silently runs for a bit, then it disappears from the process list. There are files in c:\Program Files\Remotely. There is no entry in Add/Remove Programs. There is no service created. If I launch the installer, there is no option to uninstall--just install as if it wasn't installed in the first place. If I go into c:\Program Files\Remotely and run the Remotely_Agent.exe file as an administrator, it does work and I can connect to the box.

I think something's messing up during the install process that leaves it 99% installed, but doesn't create the service, or the add/remove programs entries.

Calling the installer at this point with the -uninstall and -silent flags does cause it to remove the "broken" install.

Remotely Version Server (can be found on about page): 2023.05.24.0927 Agent (can be found in device card): 2023.05.24.0927

Desktop (please complete the following information):

bitbound commented 1 year ago

I wasn't able to reproduce this on my end. Is there anything relevant in the installer log (C:\ProgramData\Remotely\Logs\Installer.log)?

On a side note, I've wanted to rewrite the installer for a while now. There's quite a bit of cruft there.

darkpixel commented 1 year ago

I wish I could help--but I'm not a Windows dev. ;)