You can't do this with ClickOnce; it is not customizable in this way at all.
Also, note that if you are running ClickOnce as "online only", it does, indeed install it. They just have to be able to connect to the online application file in order to run it.
You could put a link on your website that does some kind of code and then invokes the ClickOnce app, but this is outside of the ClickOnce installation.
The only way to do something when the app closes down is to put it in the application code itself.
The only way to limit the number of concurrent users is to keep track of it on the server and have the application call the server for the information on whether it can run or not.
RobinDotNet
Click here to visit my ClickOnce blog!