Skip to content

Commit

Permalink
reset access controls on fstab
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterMute committed Mar 26, 2018
1 parent b5cb35c commit 6dbdda4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nsis/INIfiles/devkitProUpdate.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[devkitProUpdate]
Build=51
Build=52
URL=http://downloads.devkitpro.org
Filename=devkitProUpdater-2.2.0.exe
Filename=devkitProUpdater-2.2.1.exe

[msys2]
Version=2.10.0
Expand Down
10 changes: 8 additions & 2 deletions nsis/devkitPro.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@ RequestExecutionLevel admin ;Require admin rights on NT6+ (When UAC is turned on
; ReplaceInFile - http://nsis.sourceforge.net/ReplaceInFile
; NSIS 7zip - http://nsis.sourceforge.net/Nsis7z_plug-in
; NTProfiles.nsh - http://nsis.sourceforge.net/NT_Profile_Paths
; AccessControl - http://nsis.sourceforge.net/AccessControl_plug-in


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

; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "devkitProUpdater"
!define PRODUCT_VERSION "2.2.0"
!define PRODUCT_VERSION "2.2.1"
!define PRODUCT_PUBLISHER "devkitPro"
!define PRODUCT_WEB_SITE "http://www.devkitpro.org"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"
!define BUILD "51"
!define BUILD "52"

SetCompressor /SOLID lzma

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

AccessControl::GrantOnFile "$INSTDIR\msys2\etc\fstab" "(BU)" "GenericRead"
pop $0

Delete "$INSTDIR\msys2\etc\fstab.old"

ExecWait '"$INSTDIR\msys2\usr\bin\bash.exe" --login -c exit'

; Reset msys path to start of path
Expand Down

0 comments on commit 6dbdda4

Please sign in to comment.