How can I prevent my form from running unless a specific file is on
the users pc? I need to make sure it's my software and not any exe
with the same name? Perhaps a md5 hash check or something? So far
this is all I have but want to have a better check or prevent the software
from running.
VB Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If My.Computer.FileSystem.FileExists("C:\Program Files\XYZ\xyz.exe") Then Me.Show() Else MsgBox("You Need To Install XYZ To Continue") Application.Exit() End If End Sub




Reply With Quote