Earlier quoted context omitted.
The web is a great way to distribute native programs. Click a URL to download, then run.
I think you missed a step: - click a URL to download an installer. - run the installer that has access to large portions of your system (or if it’s an older windows program probably needs to be run as an administrator so it can add an auto updated or some nonsense like that). - run your program.
1.) Click "download" to get a piece of software you need (a static executable)
2.) Put said piece of software in a folder called "/apps/$APP_NAME"
3.) Run said software and have it persist all of its data to "/apps/$APP_NAME/data" or some other convention like that.
Perhaps that'd need to be enforced with sandboxing and limiting access to directories, which would then make sharing data across them more difficult, which would end up with something like "/data/$APP_NAME", which brings us back to the horror of Windows' "AppData" and "Documents" and "Program Data", or other folders like that, resulting in what can only be described as an Eldritch nightmare, in which you don't have any idea in which of the 20-30 different folders which particular stores its data...
But theorethically things could be simpler, i've heard people mention how easy installing apps used to be on Apple devices back in the day. And recently, after running the Godot game engine ( https://godotengine.org/ ), which is literally a single executable, i'm inclined to agree somewhat.