Skip to content

Commit 6dbdda4

Browse files
committed
reset access controls on fstab
1 parent b5cb35c commit 6dbdda4

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

nsis/INIfiles/devkitProUpdate.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[devkitProUpdate]
2-
Build=51
2+
Build=52
33
URL=http://downloads.devkitpro.org
4-
Filename=devkitProUpdater-2.2.0.exe
4+
Filename=devkitProUpdater-2.2.1.exe
55

66
[msys2]
77
Version=2.10.0

nsis/devkitPro.nsi

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,20 @@ RequestExecutionLevel admin ;Require admin rights on NT6+ (When UAC is turned on
1010
; ReplaceInFile - http://nsis.sourceforge.net/ReplaceInFile
1111
; NSIS 7zip - http://nsis.sourceforge.net/Nsis7z_plug-in
1212
; NTProfiles.nsh - http://nsis.sourceforge.net/NT_Profile_Paths
13+
; AccessControl - http://nsis.sourceforge.net/AccessControl_plug-in
1314

1415

1516
; NSIS large strings build from http://nsis.sourceforge.net/Special_Builds
1617

1718
; HM NIS Edit Wizard helper defines
1819
!define PRODUCT_NAME "devkitProUpdater"
19-
!define PRODUCT_VERSION "2.2.0"
20+
!define PRODUCT_VERSION "2.2.1"
2021
!define PRODUCT_PUBLISHER "devkitPro"
2122
!define PRODUCT_WEB_SITE "http://www.devkitpro.org"
2223
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
2324
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
2425
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"
25-
!define BUILD "51"
26+
!define BUILD "52"
2627

2728
SetCompressor /SOLID lzma
2829

@@ -491,6 +492,11 @@ install_Msys:
491492
${ProfilesPath} $0
492493
!insertmacro _ReplaceInFile "$INSTDIR\msys2\etc\fstab" "#{PROFILES_ROOT}" "$0"
493494

495+
AccessControl::GrantOnFile "$INSTDIR\msys2\etc\fstab" "(BU)" "GenericRead"
496+
pop $0
497+
498+
Delete "$INSTDIR\msys2\etc\fstab.old"
499+
494500
ExecWait '"$INSTDIR\msys2\usr\bin\bash.exe" --login -c exit'
495501

496502
; Reset msys path to start of path

0 commit comments

Comments
 (0)