From Windows Run registry, there is a list of tasks specified for running at every time Windows starts up. I have an installer which adds a key to it so after installation and restart a VB6 program will open automatically. Then after the first time openning, the registry key must be removed so that next time it will not open again. The key is in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\test
where "test" is the new key I added and pointing to my VB application.
So how can I delete it from VB6 code? I tried
DeleteSetting "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "test"
but got an error.
Any thought?
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\test
where "test" is the new key I added and pointing to my VB application.
So how can I delete it from VB6 code? I tried
DeleteSetting "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "test"
but got an error.
Any thought?