[HELP] First Run Help

Posts 1–5 of 5 · Page 1 of 1
[HELP] First Run Help
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.
Quote Originally Posted by MvRouC12 View Post
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.
Set apploc as boolean variable and that will solve this.
Marked solved, gone for one day, get some new members, woot woot
Quote Originally Posted by NextGen1 View Post
Marked solved, gone for one day, get some new members, woot woot
So, wouldn't you say welcome to us ?
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?