Public Shared Function AddStartUpApplication(ByVal FilePath As String, ByVal Description As String) As Booleanĭim RegPath As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" Here is a simple example: Option Strict On Now click the button that says "View Windows Settings", this will take you to your app.manifest file.įinally now that you have done all that stuff first(otherwise it will not work!) you can get to the Visual Basic code side of things. Get there, all you need to do is go to your application properties by clicking from the file menu: In case you have trouble figuring out how to get to the app.manifest file, to In the app.manifest file, you need to replace the following line of code: To make your application run with administrative privileges, you need to modify the You would need to run your application with administrative privileges, That location is here: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\RunĪll you need to put is the fullpath of the file I do want to point out that depending on your operating system and application build(64 bit?), windows may place that key in a different location. Aside from using the startup folder, you can also put a setting in the registry at the following location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |