Originally Posted by
techial2
Hi im asking how i could like make a launcher wich you HAVE to run to get the other program to run.
Like the launher checks for update(i know how to do that part)
Then it updates the exe(Wich means the .exe shouldnt be executed)
(You cant launch the program by double clicking, only launched trough launcher)
So i want like a verification that it only runs if launcher executes it.
(Cause that will keep the program up to date)
A real easy solution is:
Your launcher processname is: techlaunch.exe
Then at your application:
Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim teststr As String = ""
For Each p As Process In Process.GetProcesses
teststr = teststr & (p.ProcessName.ToLower)
Next
If teststr.Contains("techlaunch") Then
MsgBox("")
End If
End Sub
Not perfect, can be faked.
But a simple example ^^