Re: VB6 program needs to run and install without admin rights.



On Aug 31, 7:09 am, "Phill W." <p-.-a-.-w-a-r...@xxxxxxxxxxxxxxxxxxxx>
wrote:
buzzluc...@xxxxxxxxxxx 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

.



Relevant Pages

  • Re: Admin right for station
    ... > group to let all domain users automatically be local admins when they ... It runs under the system context and has admin rights. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: writing to registry in vista from guest account
    ... My application fails to write into registry key. ... After the installation I create new user/guest account and runs the ... The Standard user can have its rights elevated to admin level by giving a admin user-id a psw, which is only at the moment of escalation and is not maintained for the user. ... If the user account is a non-admin account, then it's not going to have admin rights as an designated user admin account, and the access is denied. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: VB6 program needs to run and install without admin rights.
    ... For the setup part the admin of the machine woever it is can run a setup ... Getting into Excel shouldn't require Admin rights. ... Getting into the Registry shouldn't be a problem either, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Limiting an account
    ... I have given the account admin rights and changed the registry setting so ...
    (microsoft.public.windowsxp.customize)
  • Re: Changing Registry ACL (need some more help)
    ... do what you have suggested since I am the Enterprise Admin. ... local admins group and have full rights to the C$ share and can traverse ... and needs to have admin rights to his/her box. ... this alternative script in a logon script and in the startup folder and have ...
    (microsoft.public.scripting.wsh)

Quantcast