Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# - Request admin access - best practice?

C# - Request admin access - best practice?

Scheduled Pinned Locked Moved C#
helpcsharpdelphidatabasetools
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wbjohnson
    wrote on last edited by
    #1

    Hi all, Im currently building an upgrade to one of our free "value added" tools we send out to customers. The new version is to replace a 10yr old Delphi version. One of the features of the new one is to import data from the old version, which is stored in Paradox. Ive run into a little problem in vista access the paradox database files. If i dont run the app in Admin mode (via Run As Administrator) i get a Paradox driver error (11625), but if i run as admin, it works fine! So far the only way i can think to fix the problem is one of the following: * Create a manifest demanding Admin privilages for the application * Document the user has to manually "Run As Administrator" for certain functions * Somehow create a shortcut (if its possible) that automatically runs as administrator Whats the best way of doing this? Can you suggest a better idea? Can the user "Run As Administrator" if they have admin rights? I ask this because some of our customers isntall the software on domained machines with Group Polices already set! many many many thanks! Will

    D 1 Reply Last reply
    0
    • W wbjohnson

      Hi all, Im currently building an upgrade to one of our free "value added" tools we send out to customers. The new version is to replace a 10yr old Delphi version. One of the features of the new one is to import data from the old version, which is stored in Paradox. Ive run into a little problem in vista access the paradox database files. If i dont run the app in Admin mode (via Run As Administrator) i get a Paradox driver error (11625), but if i run as admin, it works fine! So far the only way i can think to fix the problem is one of the following: * Create a manifest demanding Admin privilages for the application * Document the user has to manually "Run As Administrator" for certain functions * Somehow create a shortcut (if its possible) that automatically runs as administrator Whats the best way of doing this? Can you suggest a better idea? Can the user "Run As Administrator" if they have admin rights? I ask this because some of our customers isntall the software on domained machines with Group Polices already set! many many many thanks! Will

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      The best way to do it is to see if you use some other method that doesn't require admin rights. Beyond that, on Vista, it's best to use a manifest.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      W 1 Reply Last reply
      0
      • D Dave Kreskowiak

        The best way to do it is to see if you use some other method that doesn't require admin rights. Beyond that, on Vista, it's best to use a manifest.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        W Offline
        W Offline
        wbjohnson
        wrote on last edited by
        #3

        Hi, Thanks for the reply... Ive tried using OleConnection and an OdbcConnection using the native Paradox driver and the Jet driver, but they both fail when I try use the DataAdapater to fill a table from a select command! Any thoughts / suggestions?

        D 1 Reply Last reply
        0
        • W wbjohnson

          Hi, Thanks for the reply... Ive tried using OleConnection and an OdbcConnection using the native Paradox driver and the Jet driver, but they both fail when I try use the DataAdapater to fill a table from a select command! Any thoughts / suggestions?

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          There's got to be something else going on because you don't need admin rights to do a database select. Has the the config of Vista been changed at all or is this an "out of the box" install?

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups