mirror of
https://github.com/reactos/RosBE.git
synced 2024-11-24 03:49:45 +00:00
- Remove the admin checks, no reason for them anymore.
svn path=/trunk/tools/RosBE/; revision=527
This commit is contained in:
parent
8d5e9e7d7e
commit
a166bb8ed1
@ -34,7 +34,6 @@ SetCompressor /FINAL /SOLID lzma
|
|||||||
!include "MUI2.nsh"
|
!include "MUI2.nsh"
|
||||||
!include "InstallOptions.nsh"
|
!include "InstallOptions.nsh"
|
||||||
!include "RosSourceDir.nsh"
|
!include "RosSourceDir.nsh"
|
||||||
!include "LogicLib.nsh"
|
|
||||||
|
|
||||||
;; MUI begin.
|
;; 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.
|
;; Read our custom page ini, remove previous version and check if the user has administrative privileges.
|
||||||
;;
|
;;
|
||||||
Function .onInit
|
Function .onInit
|
||||||
Call CheckAdminOrCurrent
|
|
||||||
Call UninstallPrevious
|
Call UninstallPrevious
|
||||||
!insertmacro INSTALLOPTIONS_EXTRACT "RosSourceDir.ini"
|
!insertmacro INSTALLOPTIONS_EXTRACT "RosSourceDir.ini"
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
@ -258,7 +256,6 @@ Function un.onUninstSuccess
|
|||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
Function un.onInit
|
Function un.onInit
|
||||||
Call un.CheckAdminOrCurrent
|
|
||||||
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 \
|
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 \
|
||||||
"Are you sure you want to completely remove ReactOS Build Environment and all of its components?" \
|
"Are you sure you want to completely remove ReactOS Build Environment and all of its components?" \
|
||||||
IDYES +2
|
IDYES +2
|
||||||
@ -336,25 +333,3 @@ Function UninstallPrevious
|
|||||||
UninstallPrevious_yes:
|
UninstallPrevious_yes:
|
||||||
ExecWait '$R0 _?=$INSTDIR'
|
ExecWait '$R0 _?=$INSTDIR'
|
||||||
FunctionEnd
|
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user