tom-weiland / csharp-game-launcher

Source code from my tutorial on YouTube about building a game launcher/auto updater with C# & WPF.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Embedded Launcher

mhadji05 opened this issue · comments

Can you create an embedded launcher into the game?

I mean you are using 2 executables to do the update. Can you do this into the game?

You could have the game check for its own updates, but it wouldn't be able to update itself. Applications can't really replace their own files while they're running.

I don't know how to run this project. I am Unity developer. Do you have similar project created on Unity?

I don't know how to run this project.

You press the play button at the top of your Visual Studio window, or you press F5.

Do you have similar project created on Unity?

No, but you could probably take all the code related to downloading and replacing files and put it into a Unity project. It might need some tweaking but should work for the most part.

Hello I have already open the project, update the Google Drive Links for Build.zip and Version.txt files but I get this error.
Also why is it necessary to have Version.txt file in the GameLauncher folder?

Untitled

Should not check the version of .exe if it is the same as Version.txt in Drive?
If I understand correctly now is checking if the version of Version.txt in GameLauncher folder is the same as that of Version.txt in Drive?

Hello I have already open the project, update the Google Drive Links for Build.zip and Version.txt files but I get this error.

Try using Dropbox or OneDrive to store the game files instead, a lot of people have had issues when using Google Drive.

Should not check the version of .exe if it is the same as Version.txt in Drive?

You could probably do that if you'd prefer it that way.

If I understand correctly now is checking if the version of Version.txt in GameLauncher folder is the same as that of Version.txt in Drive?

Yes.

If you have any further questions or errors, join the Discord server and ask there. GitHub's issues feature is mainly meant for discussing and solving bugs with the actual repo itself, more general questions are better (and more quickly) answered on Discord.

Hello.

I have already tried Dropbox and OneDrive to store the game files but always i have the error I mention in the previous comment.
Please let me know

Did you happen to zip the zip file with a third party application like Winrar or 7zip? The ZipFile.ExtractToDirectory method is intended for unzipping files that have been zipped the "regular" Windows way.

If that's not it, there's nothing else I can do to help you without you narrowing down what the problem is. Try manually unzipping the downloaded file and see if that works—if it doesn't then something is wrong with the file being downloaded.