467,911 Members | 1,504 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,911 developers. It's quick & easy.

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
  • viewed: 9632
Share:
7 Replies
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by blockhead | last post: by
1 post views Thread by Varad | last post: by
1 post views Thread by Peter Avalos | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.