- Remove the admin checks, no reason for them anymore.

svn path=/trunk/tools/RosBE/; revision=527
This commit is contained in:
Peter Ward 2007-11-10 02:55:45 +00:00
parent 8d5e9e7d7e
commit a166bb8ed1

View File

@ -34,7 +34,6 @@ SetCompressor /FINAL /SOLID lzma
!include "MUI2.nsh"
!include "InstallOptions.nsh"
!include "RosSourceDir.nsh"
!include "LogicLib.nsh"
;; MUI begin.
@ -42,7 +41,6 @@ SetCompressor /FINAL /SOLID lzma
;; Read our custom page ini, remove previous version and check if the user has administrative privileges.
;;
Function .onInit
Call CheckAdminOrCurrent
Call UninstallPrevious
!insertmacro INSTALLOPTIONS_EXTRACT "RosSourceDir.ini"
FunctionEnd
@ -258,7 +256,6 @@ Function un.onUninstSuccess
FunctionEnd
Function un.onInit
Call un.CheckAdminOrCurrent
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 \
"Are you sure you want to completely remove ReactOS Build Environment and all of its components?" \
IDYES +2
@ -336,25 +333,3 @@ Function UninstallPrevious
UninstallPrevious_yes:
ExecWait '$R0 _?=$INSTDIR'
FunctionEnd
Function CheckAdminOrCurrent
userInfo::getAccountType
pop $R0
${If} $R0 == "Admin"
Return
${else}
messageBox MB_OK|MB_ICONEXCLAMATION \
"You do not have administrative privileges. You need to set a folder with writing rights to install your BE and Code to. NO Vista Support possible!"
Return
${EndIf}
FunctionEnd
Function un.CheckAdminOrCurrent
userInfo::getAccountType
pop $R0
${If} $R0 == "Admin"
Return
${else}
Return
${EndIf}
FunctionEnd