-2

For publishing a .NET desktop application, I would like to add a user interface that includes a license agreement during installation. I searched through some of the contents but couldn't find it for Visual Studio Community 2022. In the solution, there is no View menu. Can you let me know how to add the license agreement and other pages during installation?

CalgaryFlames
  • 678
  • 2
  • 10
  • 30

1 Answers1

0

Please check out my nanny-level teaching!

Environment:

enter image description here

  1. Add extention

enter image description here

  1. Install Microsoft Visual Studio Installer Project

enter image description here

  1. Closs the ide to start installing:

enter image description here enter image description here enter image description here enter image description here

  1. Create a setup project:

enter image description here enter image description here

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

enter image description here

  1. n 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.

enter image description here enter image description here

Jiale Xue - MSFT
  • 3,560
  • 1
  • 6
  • 21
  • @Jiale_Xue Thank you for sharing. I found your approach is creating a new project for setup. If so, how do I integrate with the main project? – CalgaryFlames Mar 04 '22 at 23:12
  • You could refer these links. [1](https://learn.microsoft.com/en-us/visualstudio/deployment/installer-projects-net-core?view=vs-2022#create-a-setup-project) and [2](https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/wx3b589t(v=vs.100)). – Jiale Xue - MSFT Mar 07 '22 at 01:15