On Win10, the "anti-ransomware" feature Controlled Folder Access impedes accessing non-whitelisted softwares to certain folders.
Is there a way (API) to know if that feature is in place when you get an error in some file operation?, so far I could find none.
Specifically what I am after is adding in de Desktop a link/icon to the app during installation. As far as I know, innoSetup is not aware of this and throws an error so my idea is to create the link myself and, in case of error inform the user, but I'd like to confirm that the real cause of the problem is CFA.
Try PowerShell:
Get-MpPreference | Select-Object -ExpandProperty EnableControlledFolderAccessAlso, you may check protected folders and allowed apps:
Get-MpPreference | Select-Object -ExpandProperty ControlledFolderAccessProtectedFolders Get-MpPreference | Select-Object -ExpandProperty EnableControlledFolderAccessHowever, if you need it just for you setup, try to run the installer with the admin rights.