1

I don't see a default option on how to do this, but maybe with a [Code] section it is possible, but no clue where to start.

The problem: Making a [Dir] entry with everyone-modify does give the local-pc/everyone group modify rights, as one would expect. However, users that log onto that local-pc with their domain or active directory account instead get defaulted to <domain>/<usergroup> with "read" rights. I want those users to also have modify rights. Another possibility would be, that anyone who can access the parent folder can modify this subfolder, which I hoped is what everyone-modify would do.

This issue exists on Windows 7, 10, Server 12, 16 and 19. More might be affected, but that's all I tested.

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
Berserker
  • 1,112
  • 10
  • 26
  • The phrase "anyone who can access the parent folder" is too vague to be dictated programmatically. – Bill_Stewart Jun 24 '19 at 19:22
  • The programmatic version of that phrase is "folder has no rights limitations" – Berserker Jun 27 '19 at 08:11
  • What does "no rights limitations" mean? Do you mean you want to disable permission inheritance and allow everyone full control of the directory? (At least, I hope you don't mean that, from a security point of view.) – Bill_Stewart Jun 27 '19 at 13:15

2 Answers2

0

Inno Setup does not support granting permissions to a specific group. If you need to set different permissions than Inno Setup supports, you need to use an external application/command, like cacls or icacls.

For examples, see:

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
  • The problem is, I don't know what the user group is, as I'm just the application author, not the one running the environments. – Berserker Jun 24 '19 at 07:55
  • OK, so maybe you should first ask a general question on [su], to find out, what you need to setup. And then come here to ask how to implement that in Inno Setup. – Martin Prikryl Jun 24 '19 at 08:12
  • What would that question be? How find out what user group encompasses everyone even on network? I doubt that question has an answer. – Berserker Jun 24 '19 at 16:54
  • 1
    If you do not think that this question has an answer, how do you expect Inno Setup to do it? – Martin Prikryl Jun 24 '19 at 18:08
0

Just checking back in for future people who might find this. It turned out to be a bug in windows and got resolved with an update to it at least on Windows 10 / Server 16/19. As far as I know Win 7 is still broken, but we've stopped supporting it now.

Berserker
  • 1,112
  • 10
  • 26