Changeset b9dc7ec


Ignore:
Timestamp:
Aug 26, 2011 11:25:12 PM (8 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
48927648
Parents:
ab58875
Message:

Set permissions to a SID not to the group Users, fixing a bug that is triggered
on localized versions of Windows.


Non-English versions of Windows do not have a Users group; instead they use a
localized group name. As a result, when installing I2P on a non-English Windows
box, the installer will show an error when trying to run the fixperms.bat
script.

Using the SID will work with any localized Windows. SID list @
http://support.microsoft.com/kb/243330/en-us

File:
1 edited

Legend:

Unmodified
Added
Removed
  • installer/resources/fixperms.bat

    rab58875 rb9dc7ec  
    99:: /t : recursive
    1010::
    11 echo Y|icacls %1 /grant Users:F /c /t > %1%\fixperms.log
     11:: Note: We should not use the group name "Users" since this group will not
     12:: exist on non-English versions of Windows.
     13::
     14:: S-1-5-32-545 = Users (en). Benutzer (de), etc.
     15::
     16:: Specifying the SID will work on ALL versions of Windows.
     17:: List of well-known SIDs at http://support.microsoft.com/kb/243330/en-us
     18::
     19echo Y|icacls %1 /grant  *S-1-5-32-545:F /c /t > %1%\fixperms.log
Note: See TracChangeset for help on using the changeset viewer.