Click here to Skip to main content
13,507,742 members
Rate this:
Please Sign up or sign in to vote.
I added a custom form in setup project. The form have one text box, in which take the serial key(which Predefined in Code) from user.

How to write code behind the custom form in setup project?

Please Help........

Thanks In Advance.........
Posted 15-Dec-12 5:13am
chester_it21 16-Dec-12 15:46pm
I have an opinion like this:
why not try to make such Form SplachScreen, but inside it there is code to read a number of his sierial whether or not ...
For example, maybe you can put it in the Registry validation checks ....
so, when your application the first time, check first, whether there was his serial number in the registry that you specify, and if no, take out his form for the registration key, if it is, go directly to the main form or the login ...
Jayanta Chatterjee 17-Dec-12 2:00am
Thanks for that,
but I'm learning C# please can u tell me how to read and write registry key ?
and How would I know the application is running for first time?
chester_it21 17-Dec-12 21:32pm can googling with key "how to read,write dan update registry using C#"..
or see this link :
Jayanta Chatterjee 20-Dec-12 2:55am
Thankssssss a lottttttt.....

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.180417.1 | Last Updated 15 Dec 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100