• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › General Discussion v
« Previous 1 ... 143 144 145 146 147 ... 368 Next »

Dolphin 4.0.2
View New Posts | View Today's Posts

Pages (2): « Previous 1 2
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Dolphin 4.0.2
05-14-2014, 02:09 AM
#11
Test876 Offline
Junior Member
**
Posts: 22
Threads: 1
Joined: May 2014
If anyone figures out a script like that, spread the knowledge.
Find
Reply
05-14-2014, 05:28 AM
#12
410172 Offline
Member
***
Posts: 141
Threads: 15
Joined: Mar 2014
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. Smile

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 Big Grin 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
[Image: hhMMMgO.png]
Find
Reply
05-14-2014, 06:26 AM
#13
AnyOldName3 Offline
First Random post over 9000
*******
Posts: 3,528
Threads: 1
Joined: Feb 2012
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: 16GB
GPU: Radeon Vega 56
Find
Reply
05-14-2014, 05:10 PM
#14
410172 Offline
Member
***
Posts: 141
Threads: 15
Joined: Mar 2014
Ok I'll write that down. Big Grin
[Image: hhMMMgO.png]
Find
Reply
05-15-2014, 04:59 AM
#15
410172 Offline
Member
***
Posts: 141
Threads: 15
Joined: Mar 2014
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 Smile

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.
[Image: hhMMMgO.png]
Find
Reply
« Next Oldest | Next Newest »
Pages (2): « Previous 1 2


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode