Make an installer for my game

how can I make a game that will install the files into the program files folder and make a shortcut on the desktop.

Hi, for my midterm project in college we used this application to make an installer. It is the easiest software when it comes to making an installer. I would highly suggest this so you do not waste time making an installer but you can dedicate that time to making your game.
It is free for both commercial and non-commercial projects.
During the installation process, the last page is advertising the software, but if you don’t want that you can pay for it and get rid of it. To be honest, nobody pays attention to the last page.
Again I would highly recommend this.

Inno is by far the best for the price.- free.

https://jrsoftware.org/isinfo.php

InnoSetup is great way to do this for most intents and purposes.

Alternatively, you can also use Windows Installer for Unity in case you:

  • specifically need an .msi installer package
  • want an automated way, that’s integrated into the Unity build pipeline

(Disclosure: I’m the developer of that asset)