How do I export my game into an exe file?

So, I've seen people selling their games made by RPG Maker so I know that it's possible. I've created a small game and now I want to export it into an EXE file but I don't know how. I've attempted using the application but it doesn't work, so I don't know what to do. If anybody could help it would be very much appreciated 🙂
All you have to do is go to File and press deployment.
Sorry I didn't reply. Thanks! I'll try it and see what happens 🙂
Although it gives you a folder with the game files and an .exe in, I don't know how to make it a single .exe file...
Can I just distribute the application? Would that then install the game?
No, they need the folder. To test what I mean, you could export and delete the www folder and see that it needs those files to run. I wouldn't though since I literally just explained it so it'd be a bit pointless
Thanks! I understand now 🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-export-my-game-into-an-exe-file.59758/