I have done quite a bit of research on this and I am at a stand still. I have looked at every post on VB Forums relating to setting programs to startup when the computer starts up and even after my research, I cannot find any guidance.
I need the application I am building to startup when the computer starts up (which I have accomplished), but without the UAC prompt. The program searches through and looks for harmful processes and requires administrator level access. I need the administrator level access, but the user should not have the UAC popup on startup. That would defeat the security in the program that I am working on if the "standard user" could just click no.
This is what I do have as far as my code for creating my startup registry:
vb.net Code:
If CheckBox1.Checked = True Then My.Computer.Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True).SetValue(Application.ProductName, Application.ExecutablePath & " -min") Else My.Computer.Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True).DeleteValue(Application.ProductName) End If
Again, I am looking for any advice for having it startup as admin without a prompt on boot.
Thanks you guys!




Reply With Quote
