472,993 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,993 software developers and data experts.

VB6 program needs to run and install without admin rights.

Hello,

I have an in house application that we developed, but everyone who
needs to use the program are not allowed to be local admins on their
PCs. I was wondering if there was a way to code the application to
not require admin rights (for modifying/creating excel and text files
as well as modifying the registry)?

And I was wondering if there was a way around needing admin rights for
creating a setup package for the program?

Thanks,
Chris

Aug 30 '07 #1
7 10407
For modifying / creating excel or text files you do not require admin
rights. However setup package requires admin rights to be installed one
time.
after that just copy the new exe files.

<bu********@hotmail.comwrote in message
news:11**********************@l22g2000prc.googlegr oups.com...
Hello,

I have an in house application that we developed, but everyone who
needs to use the program are not allowed to be local admins on their
PCs. I was wondering if there was a way to code the application to
not require admin rights (for modifying/creating excel and text files
as well as modifying the registry)?

And I was wondering if there was a way around needing admin rights for
creating a setup package for the program?

Thanks,
Chris

Aug 30 '07 #2
On Aug 30, 3:27 pm, "Sambantham Kuppusamy" <sambanth...@hotmail.com>
wrote:
For modifying / creating excel or text files you do not require admin
rights. However setup package requires admin rights to be installed one
time.
after that just copy the new exe files.
Sam, the application has dlls that it has to register when it
updates. This is what mainly creates the admin issues.

And for the modifying/creating files, i found that if the user has
rights to the programs folder, this is not an issue.

Thanks,
Chris
Aug 30 '07 #3
>However setup package requires admin rights to be installed one
time.
If you use a installer based installation program , the Admin can grant
rights to this installation package ( MSI ) , it is even then possible to
perform automatic installaions from a remote admin console

hth

Michel
<bu********@hotmail.comschreef in bericht
news:11**********************@x35g2000prf.googlegr oups.com...
On Aug 30, 3:27 pm, "Sambantham Kuppusamy" <sambanth...@hotmail.com>
wrote:
>For modifying / creating excel or text files you do not require admin
rights. However setup package requires admin rights to be installed one
time.
after that just copy the new exe files.

Sam, the application has dlls that it has to register when it
updates. This is what mainly creates the admin issues.

And for the modifying/creating files, i found that if the user has
rights to the programs folder, this is not an issue.

Thanks,
Chris


Aug 31 '07 #4
In addition ot other responses, and for the "run" part it's likely you don't
wait at the proper location. In particular note that Program files is
readonly for normal users...

--
Patrice

<bu********@hotmail.coma écrit dans le message de news:
11**********************@l22g2000prc.googlegroups. com...
Hello,

I have an in house application that we developed, but everyone who
needs to use the program are not allowed to be local admins on their
PCs. I was wondering if there was a way to code the application to
not require admin rights (for modifying/creating excel and text files
as well as modifying the registry)?

And I was wondering if there was a way around needing admin rights for
creating a setup package for the program?

Thanks,
Chris

Aug 31 '07 #5
bu********@hotmail.com wrote:
I have an in house application that we developed, but everyone who
needs to use the program are not allowed to be local admins on their
PCs. I was wondering if there was a way to code the application to
not require admin rights (for modifying/creating excel and text files
as well as modifying the registry)?
From recent encounters with Windows Vista:

Getting into Excel shouldn't require Admin rights.
Getting into the Registry shouldn't be a problem either, so long as
you're /only/ working within the CurrentUser hive. Try writing anything
under LocalMachine or elsewhere and you're likely to hit problems. If
you're lucky, you'll get hit by the dreaded UAC dialog. Failing that,
your updates will be "virtualized" and written somewhere totally
different and unexpected.
And I was wondering if there was a way around needing admin rights for
creating a setup package for the program?
If you're going to /install/ the program, then you'll need Admin rights
(on Vista, anyway). No exceptions. IIRC, just running a program with
"setup" in the name causes an elevation attempt.
If you can just /copy/ the program (.exe) onto the machine somewhere and
run it, then you might get around this.

HTH,
Phill W.
Aug 31 '07 #6
On Aug 31, 7:09 am, "Phill W." <p-.-a-.-w-a-r...@-o-p-e-n-.-a-c-.-u-k>
wrote:
buzzluc...@hotmail.com wrote:
I have an in house application that we developed, but everyone who
needs to use the program are not allowed to be local admins on their
PCs. I was wondering if there was a way to code the application to
not require admin rights (for modifying/creating excel and text files
as well as modifying the registry)?

From recent encounters with Windows Vista:

Getting into Excel shouldn't require Admin rights.
Getting into the Registry shouldn't be a problem either, so long as
you're /only/ working within the CurrentUser hive. Try writing anything
under LocalMachine or elsewhere and you're likely to hit problems. If
you're lucky, you'll get hit by the dreaded UAC dialog. Failing that,
your updates will be "virtualized" and written somewhere totally
different and unexpected.
And I was wondering if there was a way around needing admin rights for
creating a setup package for the program?

If you're going to /install/ the program, then you'll need Admin rights
(on Vista, anyway). No exceptions. IIRC, just running a program with
"setup" in the name causes an elevation attempt.
If you can just /copy/ the program (.exe) onto the machine somewhere and
run it, then you might get around this.

HTH,
Phill W.
Phill,

Some of the settings are in the local machine keys of the registry, so
i usually give the users rights to only those keys so they can modify
them. And for updating/installing the app, it has about 7 dlls that
have to be registered to work with the exe since the app is written in
vb6. (We are working on updating it to .NET, but it is taking a while
since there was a lot of legacy vb5 code still in use, as well as
ActiveX controls.)

Anyways, thanks for the help, I just know there has to be another way
around this though.
Chris

Aug 31 '07 #7
For the setup part the admin of the machine woever it is can run a setup
package. he setup pakcage can't decide by itself to run as an administrator.

For the "run part", you could consider storing this in HKCU instead and read
only machine wide settings in the HKLM. Try
http://msdn.microsoft.com/msdnmag/is...lt.aspx?loc=en and
you likely have more detailed guidelines about where you should write....

--
Patrice
<bu********@hotmail.coma écrit dans le message de news:
11*********************@o80g2000hse.googlegroups.c om...
On Aug 31, 7:09 am, "Phill W." <p-.-a-.-w-a-r...@-o-p-e-n-.-a-c-.-u-k>
wrote:
>buzzluc...@hotmail.com wrote:
I have an in house application that we developed, but everyone who
needs to use the program are not allowed to be local admins on their
PCs. I was wondering if there was a way to code the application to
not require admin rights (for modifying/creating excel and text files
as well as modifying the registry)?

From recent encounters with Windows Vista:

Getting into Excel shouldn't require Admin rights.
Getting into the Registry shouldn't be a problem either, so long as
you're /only/ working within the CurrentUser hive. Try writing anything
under LocalMachine or elsewhere and you're likely to hit problems. If
you're lucky, you'll get hit by the dreaded UAC dialog. Failing that,
your updates will be "virtualized" and written somewhere totally
different and unexpected.
And I was wondering if there was a way around needing admin rights for
creating a setup package for the program?

If you're going to /install/ the program, then you'll need Admin rights
(on Vista, anyway). No exceptions. IIRC, just running a program with
"setup" in the name causes an elevation attempt.
If you can just /copy/ the program (.exe) onto the machine somewhere and
run it, then you might get around this.

HTH,
Phill W.

Phill,

Some of the settings are in the local machine keys of the registry, so
i usually give the users rights to only those keys so they can modify
them. And for updating/installing the app, it has about 7 dlls that
have to be registered to work with the exe since the app is written in
vb6. (We are working on updating it to .NET, but it is taking a while
since there was a lot of legacy vb5 code still in use, as well as
ActiveX controls.)

Anyways, thanks for the help, I just know there has to be another way
around this though.
Chris

Aug 31 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: blockhead | last post by:
We are looking for someone to either complete a php forum program or create one for us. There isn't really anything that is available that suits our needs and we have specific wants. If you are...
1
by: Varad | last post by:
Hi, Am trying to install SQL Server Express CTP on my machine (Windows XP with SP1). I have downloaded the windows installer and .net framewrok specified in the readme file(ReadmeSQLEXP2005.htm)...
1
by: Peter Avalos | last post by:
My goal is to create a remote installation program to rollout program installs and updates. We're a small company with about 60 workstations, so it's not worth the investment in SMS. I have the...
3
by: Tom van Stiphout | last post by:
We secured an Access MDB for a client, using the Access 2000 (or above - still trying to find that out) security wizard. I trust the developer who did this, and the screendumps of the process don't...
5
by: UJ | last post by:
I have a set of programs that is going to be dependent on Window's Message Queues. Is there any way I can check to see if Messaging Queues has been installed and if not install it? TIA - Jeff.
1
by: dwasler | last post by:
OS Win XP Pro SP2 I had to uninstall my db2 V8 because of WAS Commerce Server 6.0.2 I created an account with admin rights Now went I try to install db2 V8 via the commerce Whiz installer at...
6
by: mimime | last post by:
I am new in this forum, please forgive me if this question has been discussed before. I am an UNIX admin, our PC admin just quit so boss put me in charge of "granting the admin rights to the PC...
1
by: beena | last post by:
Hi All, I inherited an AIX box (5300-06) with Client install... (I think it's only client). How do I check the type of Client (Admin vs Runtime vs Application development ) on AIX ? I have to...
0
by: nikib | last post by:
Hi, I am new in the forum and new in .Net. I've tried to search for answers on web to no avail. Can anybody help me with this problem? Is it possible to install a console app, that also has...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.