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.
:wave: