If anyone figures out a script like that, spread the knowledge.
Dolphin 4.0.2
|
05-14-2014, 05:28 AM
Well, I don't know how it works but I can sum up what the command line should do:
- Check for new versions of Dolphin. If there is a new version: - Ask if the user wants to update Dolphin. If the user answers yes: - Check what operation system the user is running and whether it is a 32-bit or a 64-bit version. - Download the new version from the website using the information above. - Extract downloaded files (if necessary). - Run the installer, ask for administrator privileges and install new version of Dolphin. - Uninstall previous versions (don't know if this will be done automatically). - Run Dolphin. If the user answers no: - Run Dolphin. If there is no new version: - Run Dolphin. This way it would be enough to run the command line as it would run Dolphin when there is no new version or when the new version is installed. The command line must of course be told where Dolphin is installed. That's the draft. Now I feel like I have done something useful this evening. I don't know we might be able to create this using Microsoft Visual Studio and some C# language. Not that I am familar with it, my father does it for work so I get some information now and then. I am willing to do some research into this but for now I'm busy with my exams so I don't have the time. If I will do something it will not be this or next week. I will warn you when I'm up to something and share the product when it's done. This future has to be created, this will make it way easier and less time consuming to update Dolphin, convincing me to step over to the development versions. 410172 05-14-2014, 06:26 AM
Only stable releases have installers, unless something's changed recently, so instead of running the installer after extracting, it should just tell 7zip to extract the contents over the existing Dolphin folder. If it doesn't find 7zip then it should echo "No Dolphin for you, heathen!" and then quit.
OS: Windows 10 64 bit Professional
CPU: AMD Ryzen 5900X RAM: 48GB GPU: Radeon 7800 XT 05-15-2014, 04:59 AM
After talking with the person who create the update future for our Populous Reincarnated Matchmaker, I have gathered some information which might be useful for the project.
He said it was actually quite simple to create an update future: - the program downloades the newest files to a temporary location - the current files should be renamed - copy the newer files to the Dolphin directory - delete the renamed files and the temporary directory - launch Dolphin. I asked him how to tell the program what version to download and he answered: - Make a list of hashes of the new files - let the program download the hash and compare the files with the current files. If they are the same, the program won't be updated and Dolphin will be launched. If they are, well, follow steps above. This program can be created using any programming language that allows a created program to download, rename and copy/paste files. I can add that it should have the abililty to launch other applications like 7zip (unless developers would not give there updates in .zip files) and of course Dolphin. Any more knowledge is of course very welcome. I don't know anything about programming language yet so this is your chance to teach me 410172 p.s.: when enough knowledge is gathered I am definitely going to give this a chance, so I am actually going to try to create an update future. Hope you have nothing against that. It will be holidays then anyway. |
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)