Is it possible to elevate a program once it is already running in VB6?
Posted on 2007-11-15
Because of a 3rd party software we incorporate we need to write the Registration Code to unlock it to the HKEY_LOCAL_MACHINE portion of the registry so it's available for all users. And this needs to be done when the user is running after they purchase it as opposed to during installation.
Is there any way to elevate a program once it is running or to write to the HKEY_LOCAL_MACHINE in VB6 on Vista? I don't care if the user gets the UAC prompt to allow it but I really don't want to have to have a completely separate registration program that runs in elevated mode to do it. It's so much cleaner if it's kept inside of our main program.