Self-Extracting Archive EXE
Why should I be interested?
You may be interested in creating a self-extracting archive executable if your VR app is very large in size and/or contains many files. Often times, distributors will just throw the files in a ZIP and call it a day. Although ZIP archives have the highest compatibility with the all systems and don't require any custom software, their compression ratio is not as high as other formats, such as 7z archive format.
7z archive format comes with the downfall that it requires you to use 7-Zip to unarchive the files inside, which does not come pre-installed on most systems (although it is open-source software).
7-Zip has the ability to create self-extracting (SFX) archives, which are EXE files that contain a micro version of 7-Zip that allows you to compress your content in the higher density / more efficient 7z archive format while still allowing users without 7-Zip installed on their computer to access your files.
0) Prerequisite: You must have 7-Zip installed on the computer that is creating the archive! Download free from https://www.7-zip.org/
Note: You may also use WinRAR to accomplish this same task, although WinRAR is neither open source nor free.
1) Select the file(s)/folder(s) that you want to archive. Right click, then select "7-Zip > Add to archive..."
Alternatively, you can open the 7-Zip File Manager app, browse to the desired file(s)/folder(s), then click "Add"
2) Fill out the fields in the wizard below:
Name your archive and choose where it should be outputted to. You can always rename/move this afterwards. Note that you should avoid using the words "Setup" "Install" or "Update" in your EXE names if you do not modify registry keys, as some operating systems will warn if you never modify the registry.
Choose the archive format. You should choose 7z, as this is the most efficient/compact format.
Choose the compression level. The higher this compression level, the smaller the overall file size, but the longer it will take to archive and unarchive. This is a tradeoff that you can experiment with. I typically recommend a compression level of 5-7.
Be sure to check the box to "Create SFX archive" if you want the self-extracting archive! (otherwise users will need 7-Zip to extract your archive)
3) Click "OK" to start compressing the archive. After the compression process completes, your file will be generated and you will be all done!