Giving VB6 app Admin rights with Vista
I've been reading so much about the changes with Vista including writing files, registry, etc blocked. How are some programs having admin rights when they run? Such as an installer I use, it has admin rights to write anywhere to the registry anywhere, registry, etc. Any chance this can be done with a VB6 app? How can theirs be doing this?
They sure are making it tough for us writing applications!
Re: Giving VB6 app Admin rights with Vista
This thread might be useful.
Quote:
Originally Posted by WarrenW
They sure are making it tough for us writing applications!
They are making it tough for virus writers etc, and making it hard for you to do what you shouldn't have been doing anyway - for years there have been official MS guidelines as to what programs should and shouldn't do (which mainly make good sense).
For example.. there is no need to use the registry (apparently a large registry slows the computer down), as you can (and should) store your data to files in the proper User and AllUsers folders instead. This also means that backups etc are easier, a corrupted registry doesn't affect your program, and that the settings can easily be taken to another computer if wanted.
Re: Giving VB6 app Admin rights with Vista
As I have noted before, that "faq" I helped with doesnt cover needed areas for this feature. You need to designate with an xml file that the task requires admin rights, but if you dont want a process prompting you for the credientials then you need to create the task with an elevated processand security token. Its a bit complex but...
Also, please dont create duplicate threads. ;)
http://vbforums.com/showthread.php?t=482375