Loading
  • 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.
    Expand Post

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