Hi everyone!
I’m currently trying to make a Hub for one of my games, a place where you can quickly install the game without having to actually get the link to the game directly. If there is a better way of doing this, please tell me, but right now I think that creating an installer file, then uploading it to mega or mediafire, and then making a button run the file linked to that link when pressed could work. However, I have absolutely no clue how to make that? Of course, I could just make it open the url to the installer itself, and then let the person download it and run it by themselves, or just the game in a .rar file itself. But, I just want it to be as easy as possible. Does anyone know how to do this? Would this even work?
That requires two separate actions
- Download the file
- Install the game
For downloading, I made a tutorial on how to use WebRequests to download from an HTTP here Download Data Images from inside Unity - Code Monkey
Then for installing, I’m not sure if Unity has built-in support for .rar but there’s a bunch of free .zip unarchivers on the Asset Store. If your game does not require any special installation, if its just unzipping and copy to a folder then that could work.