How to Create Setup exe file in Visual Studio with License Key | FoxLearn

How to Create Setup exe file in Visual Studio with License Key | FoxLearn


Welcome to FoxLearn In this tutorial, I’ll show you how to create a setup file in visual studio with serial key using the custom dialog box setup To play the demo, you should create a new windows forms application project If you don’t have the Microsoft visual studio installer projects extension, you can download and install it from the manage extensions menu In the choose project outputs to include dialog box, you need to select the primary output from your project name You can also create a shortcut to your desktop screen, then drag the shortcut to the User’s Desktop or User’s Programs Menu Right click on your setup project, then select view item Next, select the user interface to use the visual studio installer custom dialog box Select the Customer Information dialog and click Ok button, then change the order of this new dialog to after the Welcome dialog box. To activate the serial number validation, you need to select Customer Information dialog, and from the property panel set the ShowSerialNumber to True. By default this property specifies a template used to validate serial number entry, and it also determines how the text boxes will appear in the dialog box The hashtag (#) character requires a digit that will not be included in the validation algorithm The percent (%) character requires a digit that will be included in the validation algorithm Right click on your setup project, then select the properties tab, you can enter author, product name, description…etc for your setup file You can also add a requirement to install the .net framework or other component before installing your application Every time you create the setup file, you should select release mode, instead of debugging, then rebuild your project Right click on your setup project, then select Open Folder in FileExplorer, you can find the setup file in the release folder For example, We have created three text boxes separated by a dash surrounded by spaces The hashtag (#) character simply verifies that the user has entered the digits The percent (%) character is validated by an algorithm that adds the digits together and divides the sum by 7 If the remainder is 0, validation succeeds, otherwise it fails Thank you for watching this video and don’t forget to subscribe to my channel

Only registered users can comment.

  1. I LOVE FOX LEARN TUTORIALS BUT I HAVE A PROBLEM. IT VERY SIMPLE YOUR TOPICS ARE GOOD BUT YOU DON`T EXPLAIN THE CODES YOU WRITE DEEPER. I FOR INSTANCE AM NEW TO CODING. SO ALL I DO IS TO ONLY COPY THE CODES AND IT WORKS. PLEASE TREAT THIS WITH IMMEDIATE EFFECT. THANK YOU

  2. Are you working on Microsoft? 😛 Its just one word to say your skills ''Stupendous". Why don't you make WPF UI making and Coding? It will great if you do it. Thanks. #Cheers

  3. Hello Fox Learn, first i wanna appreciate your work……..thanks a lot
    I want you to make us a video on fixing problems while installing Microsoft SQL server 2017 "the sqlncli.msi package could not be found"

Leave a Reply

Your email address will not be published. Required fields are marked *