我正在编写一个类似于谷歌桌面的桌面应用程序,但使用我自己的vb.net 2008小工具,当用户将其安装到他们的计算机上以在启动时运行时,我如何才能使我的应用程序运行?
假设我的应用程序名为windowsAplication1,并且我使用的是windows XP,并且该程序将安装在C盘上?
发布于 2014-06-02 18:11:28
一个简单的方法
Imports Microsoft.Win32
...
Dim regKey As RegistryKey
regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run",True)
regKey.SetValue(Application.ProductName, Application.ExecutablePath)
regKey.Close()希望能有所帮助
https://stackoverflow.com/questions/1377537
复制相似问题