Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
824 views
in Technique[技术] by (71.8m points)

vb.net - How to add Licence agreement in the setup project

I wish to add licence agreement to my setup files (using setup project) If user does not accept it, setup should be cancelled.

Please advise how to do it. Thanks and best regards, Furqan

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can easily add a "License Agreement" dialog to a setup project created in Visual Studio.

To do this, follow these steps:

  1. With your setup project open in Visual Studio, right-click on the project in the Solution Explorer, point to "View", and click "User Interface".

  2. Right-click on the "Start" group, and select "Add Dialog" from the pop-up menu.

  3. In the "Add Dialog" dialog, click the "License Agreement" icon and click "OK". A license agreement form will be added to your installer under the "Start" group.

  4. Drag and drop the "License Agreement" dialog in the list to rearrange where it appears in the setup sequence.

  5. With the "License Agreement" dialog selected, use the "Properties Window" to customize its options as needed for your application. The most important thing to set here is the "LicenseFile" property, which specifies the text file that contains the license agreement you want to be displayed.

    If you cannot find the text file that contains your license agreement, you need to add it to your setup project. To do this, select the "Browse" option from the "LicenseFile" drop-down box. Then, in the dialog that appears, double-click on the location where you want your license agreement to be copied to the target machine (presumably the "Application Folder"), and then click the "Add File" button. Your license agreement should be named "license.rtf", and must be encoded as an RTF file.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...