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.
 
M

Mona

Hello Sathyaish,

This problem is application-specific.

For example a limited user only has read permissions on anything in
c:\Program Files\* unless its been explicitly given.

To give limited users the proper rights, it must be installed as an
Administator, and you should have your setup execute "cacls "c:\Program
Files\MyApplication" /e /t /p users:F"

For more informati0n, you can refer to the following link:

[Cacls]
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cacls.mspx

HTH

Mona[Grapecity]

You should probably only assign the rights you need but the above command
should allow full access access to anyone within the "Users" group.
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top