ryanhlewis / updatelauncher

An automatic updater for your applications. This will check for new versions, download, unzip, as well as run your app.
MIT License
14 stars 3 forks source link

Hi instead of doge.zip /dogeFolder #2

Open mazlum1414 opened 1 year ago

mazlum1414 commented 1 year ago

Hi instead of doge.zip /dogeFolder update1.zip Is there a way to run it as update2.zip? In big games, we have to split the zip file, which causes more than 1 zip file, for this it must support more than one zip file

ryanhlewis commented 1 year ago

Yes, you can do this easily.

On line 134 of MainWindow.xaml.cs, you'll see a getUpdate() function. This is the function that goes ahead and downloads your update.

Just start a loop in this function, and iterate over some set of GUID + i + ".zip", or whatever your naming convention is for the different zips.

It should still block until everything is unzipped in the same location. I just worry that you might want to do this in parallel, which might require some special parallelized for loop.

mazlum1414 commented 1 year ago

Hi thanks for the answer there is an example in the picture but I couldn't figure out how to put it in the for loop

image