As long a configuration file is present, the service will know what to do .
https://learn.microsoft.com/en-us/iis/publish/using-web-depl...
Click Once for Desktop:
https://learn.microsoft.com/en-us/visualstudio/deployment/cl...
If you're the web hosting provider, you may provide a frontend that shows billing info, a button to purchase SSL certs or provision a new database, and FTP credentials to upload code.