Link to home
Start Free TrialLog in
Avatar of girlswants_me
girlswants_me

asked on

Accessing the Access rights of the User

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.

Avatar of girlswants_me
girlswants_me

ASKER

help us please
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.
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
... 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
ASKER CERTIFIED SOLUTION
Avatar of Madshi
Madshi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
tHANK you so much MADSHI, we realized it all.
so to install programs you must see the system admin.