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_rig hts)
Procedure EditableFiles(Filename;kin ds_rights)
DirectoryPath - any directory specified
Filename - filename of the file you want to access
Kinds_rights - can be readonly or writetable etc.
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
Procedure EditableFiles(Filename;kin
DirectoryPath - any directory specified
Filename - filename of the file you want to access
Kinds_rights - can be readonly or writetable etc.
write it to
HKEY_CURRENT_USER\Software \Microsoft \Windows\C urrentVers ion\Uninst all
instead... coz every user can access that... unless of course, the System Admin has completely disabled registry access.
HKEY_CURRENT_USER\Software
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
tHANK you so much MADSHI, we realized it all.
so to install programs you must see the system admin.
so to install programs you must see the system admin.
ASKER