Packaging Tool Used: WIX.
Custom Actions are written in C++.
During installation my MSI creates a folder "X" inside ProgramData , by the end of installation i need to give folder share access to current logged in user (or any local user in the PC this input will be provided by the user during installation ) , I am unable to find any WIX element or a C++ API that could help me with this.
I figured out using element in wix i can provide permission to the folder(Security tab of folder attributes) , but i couldnt find a Wix element/C++ API to give share permissions.(Sharing tab of file attributes) Right now if u see "Everyone" has read access , Via my MSI i should be able to provide any user full access(Full control) in Sharing.