|
-
Feb 7th, 2011, 10:00 AM
#4
Re: Product Registration
Based on your idea:
Customer sends his bios serial number : 12AUU89EW (eg.)
You include(hardcode) that serial number in a variable in your program and compiles it and sends this to your customer.
Then, during each start of the program, it will get the bios serial and checks it with the saved value.
Is that correct ?
vb.net Code:
Public Class Form1
Dim custBIOSserial As String = "12AUU89EW" '~~~ the bios serial key that you got from your customer. Here, you have hardcoded the value and rebuild your application
'~~~ At load, checking if both are same
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If GetBIOSSerial() = custBIOSserial Then
MessageBox.Show("You are free to use this program")
Else
MessageBox.Show("Beep..Beeep.. Hey dude... Key is not matching !!!")
End If
End Sub
Private Function GetBIOSSerial() As String
'~~~ your own code for getting the BIOS serial key for the PC that is running this program.
'eg.
Return ("8795IPW1")
End Function
End Class
I think, that's not a good approach. Hardcoding values (strings) are more vulnerable to get your app hacked !
I think, you have to work on some code to generate a license key based on the lock you want (bios serial key based lock, HDD serial key based lock, etc..) to use.
I don't have much ideas on this, but I'm sure others will provide some great ideas or suggestions.
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|