cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Kiranpatil88
Level 3

Is there any API used for check the user access permissions on Folders.

Is there any API use in installscript for check the user access permissions on Folders, Registry and COM + Components . Could anyone please help me in the same.
Labels (1)
0 Kudos
(2) Replies
phill_mn
Level 7

To determine if the user which launched the setup has write access to a folder or file, use the Is function with appropriate flags to determine if the file or folder exists, and if so is writeable. I don't know of any InstallScript function to call and check access in the context of another user, but I assume it could be done using Win32 Impersonation tokens in an external tool (DLL or EXE) called from the InstallScript. Use SetObjectPermissions to set the desired permissions.

For DCOM there is a tool (with source code) in the Windows SDK (dcomperm) which you can modify and call from InstallScript to query and configure DCOM permissions.
0 Kudos
Kiranpatil88
Level 3

Thank you very much.....
0 Kudos