|
-
Aug 5th, 2007, 12:25 PM
#1
Thread Starter
Frenzied Member
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!
-
Aug 5th, 2007, 01:05 PM
#2
Re: Giving VB6 app Admin rights with Vista
This thread might be useful.
 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.
-
Aug 5th, 2007, 01:23 PM
#3
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
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|