VB6 Program Setup: making it work without administrative privileges

Posted on 2010-01-09
Medium Priority
Last Modified: 2012-08-13
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.

Question by:ttobin333
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 29

Accepted Solution

nffvrxqgrcfqvvc earned 2000 total points
ID: 26275202
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 :(

Author Comment

ID: 26275864
Thanks again egl, I'm going to study this material. I will probably have some questions along the way...

Expert Comment

ID: 26276462
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.

Author Closing Comment

ID: 31675049
Sorry for the delay in awarding the points! Thanks again for your help.

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question