Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Anybody knows how to Add "Terms and Condition" step when publish the windows application by "CLICKONCE".
Posted
Updated 17-Apr-13 4:20am
v3
Comments
[no name] 17-Apr-13 10:28am    
shouldn't it be under windows forms..not asp.net
[no name] 17-Apr-13 10:31am    
please have a look on this link : http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/301d7b68-914b-4a05-8f2b-d9aa53f69cca

ClickOnce deployment is meant for simple installs. The install process is not customizable. Depending on your needs, the publish options could use used to add a URL to a "Terms and Conditions" webpage. If you go to your project properties, on the publish tab, choose Options. Maybe using the support URL options would work for you. If not, I think you would need to create your own deployment project so you can add a "Terms and Condition" step.
 
Share this answer
 
A simple solution may be to add the t&cs to the app code, they can then be displayed on the first run of the application. If the user selects accept, write out a file to the local file system which can be checked for when the app starts. That's how I've done it with clickonce in the past, with some quite substantial applications.

There is also an API here[^] one can use to do all kinds of things in the context of clickonce. In fact one should really treat clickonce as purely a deployment mechanism. If extra installation steps need to be taken, they should be included in the application itself.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900