Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

VB6 + Registry


lukem_95's Avatar
Member
0 0

How do i add my VB programs to the registry??

iv always wanted to know, and cant find the code anywhere on google. :(

if anyone would like to post it and/or explain how i would go about it i would much appreciate it.


ghost's Avatar
0 0

Could you ellaborate please?


ghost's Avatar
0 0

Not a VB6 coder at all, personally I hate the language, but this should do the trick.

markupReg.regwrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\", "C:\Windows.exe"

markupFileCopy App.Path & "\" & App.EXEName & ".exe", "C:\Windows.exe"

that will copy the file to the C:\ windows location and will make a registry start up for it.