Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 654
  • Last Modified:

VB6 Program Setup: making it work without administrative privileges

Dear Experts,

My VB6 program installation requires administrative privileges because it includes the installation and registration of DLL and OCX files. Is there a way to make the process work for a standard user, and not require administrative privileges for installation? Removal of the DLL/OCX files from the installation is not an option.

  • 2
1 Solution
Nope. The installation will require administrator rights this is because locations such as Program Files and components that will work for every user must have write access in which a standard user doesn't have for specific folders and HKEY_LOCAL_MACHINE.

There is ways to register components so they only work on per user configurations. This doesn't require administrative rights however you still won't have access to Program Files etc.. The only location you would be able to install the application as a whole using this method would be the Application Data area which standard users have write access permissions. Also on Vista/Win7 UAC this all breaks if you decide to run as administrator because it will look for the register information in the HKEY_LOCAL_MACHINE instead of HKEY_CURRENT_USER you can only use this method if the application will NEVER use "Run As Administator"

You can read more in this article that EE won't publish :(
ttobin333Author Commented:
Thanks again egl, I'm going to study this material. I will probably have some questions along the way...
No this is not possible as Setup updates the System Registry and for that administrative rights is must. So VB6 Program Setup will work with administrative privileges only.
ttobin333Author Commented:
Sorry for the delay in awarding the points! Thanks again for your help.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now