Hey everyone... i was wondering if anyone could help me with detecting the first time a program is ran.
Right now i have it check for a text file and if it not there then its the first time the program has been run.
So i was wondering, because for some reason my current code doesn't work, if i could write to the registry instead of making a file. Then have it check the registry?
Current Code:
Code:
Private Sub Splash_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim apploc As String
apploc = System.IO.File.Exists(Application.StartupPath + "\Check.OTT"
If apploc = True Then
'Run normal code
Else
'Show first run
'Write Check.OTT
End If
End Sub
Any help will be appreciated.