This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Is there any API used for check the user access permissions on Folders.
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 13, 2013
09:33 AM
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.
2 Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 13, 2013
12:00 PM
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.
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 14, 2013
12:31 AM
Thank you very much.....
