View Single Post
Old 27th June 2012, 11:07   #8
Afrow UK
Afrow UK's Avatar
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Why on Earth are you doing that? Where are you installing to that requires you to change folder permissions?

Either way I see some issues with your code:
  1. Your first call to AccessControl will always fail - the username/SID argument is not optional (i.e. this will result in stack corruption).
  2. S-1-5-21 is not a valid security identifier.
  3. S-1-5-32-545, Users and BU are all the same BUILTIN\Users group!

Afrow UK is offline   Reply With Quote