Running programs for non-previleged users on XP


S

Sathyaish

Scenario
===========

(1) You write a program using some programming language, say, C#.

(2) You make an assembly out of the program by compiling it. It is a
single module assembly.

(3) You create a setup program for this.

(4) During the setup, the user, an administrator group user, selects
the option, "Install this program for all the people who use this
computer, and not just for me."

(5) The administrator group user finishes installing the program. Then
he goes on to use it. He is able to use it.

(6) The administrator group user logs off.

(7) Another user, let's call him by the name John, who's only a
"regular user" who does not belong to the administrator group (not even
a Power User), logs in and wants to use the program. He double-clicks
on the program exe icon on the desktop. It doesn't work for him.


Questions:
============
(1) Is is even possible or a reasonable demand that the user who does
not have administrative previliges be able to use the program. It must
be noted that the intention is so, since the administrator who
installed the program supplied the choice "Install for everyone" while
installing it.

(2) If it is possible and a reasonable demand, how can it be
accomplished?


* I present an oversimplified version of the problem only to focus on
the bare essentials of the problem.
 
Ad

Advertisements

D

Dave Patrick

Try setting up failure auditing on the local machine hive. Run regedt32.exe
then browse to HKLM, then
Edit|Permissions|Advanced|Auditing|Add|"everyone"|OK then check the "Failed"
box on Full Control, Set Value, Create Subkey, Enumerate Subkey, Delete,
Create Link

Then try again logged on as a normal user. Then check the Event log security
for errors.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Scenario
| ===========
|
| (1) You write a program using some programming language, say, C#.
|
| (2) You make an assembly out of the program by compiling it. It is a
| single module assembly.
|
| (3) You create a setup program for this.
|
| (4) During the setup, the user, an administrator group user, selects
| the option, "Install this program for all the people who use this
| computer, and not just for me."
|
| (5) The administrator group user finishes installing the program. Then
| he goes on to use it. He is able to use it.
|
| (6) The administrator group user logs off.
|
| (7) Another user, let's call him by the name John, who's only a
| "regular user" who does not belong to the administrator group (not even
| a Power User), logs in and wants to use the program. He double-clicks
| on the program exe icon on the desktop. It doesn't work for him.
|
|
| Questions:
| ============
| (1) Is is even possible or a reasonable demand that the user who does
| not have administrative previliges be able to use the program. It must
| be noted that the intention is so, since the administrator who
| installed the program supplied the choice "Install for everyone" while
| installing it.
|
| (2) If it is possible and a reasonable demand, how can it be
| accomplished?
|
|
| * I present an oversimplified version of the problem only to focus on
| the bare essentials of the problem.
|
 
P

Phill. W

Sathyaish said:
(5) The administrator group user . . . is able to use it. .. . .
(7) Another user, . . . who does not belong to the administrator
group (not even a Power User), logs in and wants to use the
program. . . . It doesn't work for him.

Define "doesn't work".

The program doesn't start at all?
It starts but immediately gives an error (dialog) of some kind?
It starts and functions up to a point, before failing?
(the possibilities are almost endless ...)
(1) Is is even possible or a reasonable demand that the user who
does not have administrative previliges be able to use the program.

That depends entirely on what the program actually /does/ and what
it is being /prevented/ from doing because it's not running under an
Adminstrator's account.

Symptoms, error messages, etc. etc., please.

Regards,
Phill W.
 
Ad

Advertisements

C

Crouchie1998

I am a programmer & code in C/C++/C#/VB/VB.NET and so on.What I do in my
programs is setup 'Code Access Permissions' You will also need to add the
assembly to the Global Assembly Cache (GAC) to git certain security
permissions etc.

Crouchie1998
BA (HONS) MCP MCSE
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top