-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow update of program from CC server #4
Comments
Good point, but it's not that easy to override an an running exe file. Additional virus scanners wouldn't be happy with that. And the xmrigCCServer server would have to know which binary to deploy. Could also be a Linux miner. But I'll keep that in mind an think about a suitable solution. |
In response to the running EXE problem, you could use a solution mentioned like here (https://social.msdn.microsoft.com/Forums/vstudio/en-US/c9a95e66-58a3-49b0-9474-92a46dbe252c/how-to-download-and-replace-running-exe?forum=vbgeneral), which suggests using another program to download and subsequently run the new file. Since the CC server checks for updates, you could likely include something in the program that reports miner version back to the CC server, allowing remote update. In the Miner/Daemon, you would have to add a new function which, on command reciept from the CC server, starts the updater program (which likely waits a few seconds), stops itself, and then once the updater program has completed the download and replacement, starts the newly downloaded program with existing configuration. |
Will have a look.. |
I've worked on a desktop app that automatically update itself and we had no issues with anti viruses, but the app was installed in the appdata folder on windows. Another program (the updater) checks for a new version every few minutes in the background. When a new version is available, the server sends a link of a zip file containing the update. The updater downloads and unzip the zip contents in a temp folder, stops the app and moves the files from the temp folder to the app folder replacing existing files. There are a few more things in our updater, like checking if the app is not doing anything important before stopping it, but I don't think this is needed here. |
It would be a pain for a lot of miners, since you'd have to manually update each one and restart it. If you can update the config remotely, why not add a config switch that allows the exe to be updated on a restart?
The text was updated successfully, but these errors were encountered: