Results 1 to 3 of 3

Thread: Giving VB6 app Admin rights with Vista

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    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!

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    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.

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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
  •  



Click Here to Expand Forum to Full Width