Weird files on my Desktop after installing programs
I assume you're new to Mac ;)
If you get an application from anywhere other than the App Store, it will come neatly wrapped inside a Disk Image file, .dmg.
You double-click it &amp; it will mount just like a real disk or USB stick/SD card on your desktop. It won't show as present in your desktop folder as that's not really where it is. It is mounted at /Volumes in your OS, the same way all your other drives are mounted. Their appearance on the visible desktop is for convenience.
To all intents &amp; purposes a mounted disk image behaves exactly like any other removable drive.
Normally, you open it [or it should open automatically] to show the contents.
Then there are two basic installation methods.
Simple drag &amp; drop - there will be an app &amp; an alias to your Applications folder. You drag the app to the alias &amp; by the 'magic' of Mac aliases, that will copy it to your own Applications folder on your Mac.
Pic of a 'regular' app. Original .dmg file top left, mounted 'disk' right, then below a simple drag &amp; drop installation.

Alternatively, a mounted disk image will contain an actual installer package you need to double-click &amp; run. This is usually for more complex installations that need to ensure specific separate system components all go to the correct places. When you launch one of these you will be presented with an admin permissions dialog to allow the installer to do this.
Pic again with .dmg file to the left, mounted disk to the right &amp; installation window below. Note: some of these more complex apps also need an uninstaller, conveniently packaged in the same .dmg. If an app doesn't have an installer, it shouldn't need an uninstaller.

With either type, once you have finished with it, you can then eject it, just like a real drive - either click in the window, then  Cmd ⌘   E  or right click &amp; select &quot;eject [name of 'disk']&quot; or from any Finder window, sidebar etc where you can see the eject arrow ⏏︎
Once ejected, then you can either file it away for if you ever need it again, or throw it in the Trash. It's done with.
The app will now run from your regular Applications folder.
Note: Other than special circumstances, apps are not designed to actually run from the mounted disk image. Some will, some will complain, but generally you should avoid it. Run them from Applications after you have copied them over, or installed.