Solved

Accessing the Access rights of the User

Posted on 2002-06-13
6
129 Views
Last Modified: 2010-04-04
Hello everyone anybody can help me here?

We have a problem here coz we are making a SOFTWARE INSTALLER PROGRAM (for our multimedia products).
When installing our program (when on WINDOWS XP is used)
only the SYSTEM ADMINISTRATOR or the POWER USER have the full access of the system AND CAN write or remove installed programs in the system, BUT HOW ABOUT if the user is an ORDINARY USER. he cant install our software coz he/she dont have rights to install coz it will be a readOnly system. how can i change the system rights or how can i write files in the system and then make it restore the default?

for example i cant write from the WINDOWS DIRECTORY how can i make myself having a full access and then turn it back to its original rights.

anybody can help me with this one. and can give me CODES FOR IT. so that i can use it right away.

example

Procedure changeAccess(DirectoryPath;kinds_rights)
Procedure EditableFiles(Filename;kinds_rights)

DirectoryPath - any directory specified
Filename      - filename of the file you want to access
Kinds_rights  - can be readonly or writetable etc.

0
Comment
Question by:girlswants_me
6 Comments
 

Author Comment

by:girlswants_me
ID: 7076911
help us please
0
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 7077006
write it to
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall

instead... coz every user can access that... unless of course, the System Admin has completely disabled registry access.
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 7077395
Well this is a tough call. Consider that the SysAdmin may not want this to be done. They may have even setup these user's with the implicit intent of disallowing anything to be installed or uninstalled by that user. What you are asking seems as a way to circumvent the reason the Deny access is in place to begin with.


The Crazy One
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 14

Expert Comment

by:DragonSlayer
ID: 7077411
... unless of course, you save the uninstallation details in an .ini file in the program folder, and add a shortcut to the uninstaller to the start menu as well
0
 
LVL 20

Accepted Solution

by:
Madshi earned 200 total points
ID: 7077554
Hey, what would NT security be worth, if an ordinary user could change his own rights to be administrator like? You're joking, aren't you?

You have to live with the restrictions, that is: Don't use the Windows directory, don't use HKEY_LOCAL_MACHINE. Instead put everything into "C:\Program Files" and write to HKEY_CURRENT_USER. That's the way to go.

If your program can't run without putting something into the Windows directory (why???), you have to ask the user to let the administrator install the program.

Sorry for the bad news.

Regards, Madshi.
0
 

Author Comment

by:girlswants_me
ID: 7077573
tHANK you so much MADSHI, we realized it all.
so to install programs you must see the system admin.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Intraweb submit form as a POST request 4 327
Working this component WebCopy with proxy, help 3 92
Dev express lookupcombo 3 35
DBCtrlGrid, Delphi, Scroll 8 38
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question