@echo off  
reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "C:\\Program Files\\Huawei\\HwLcdEnhencement\\HwLcdEnhencement.exe"  
IF errorlevel == 0 
(  
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "C:\\Program Files\\Huawei\\HwLcdEnhencement\\HwLcdEnhencement.exe" /f  
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "C:\\Program Files\\Huawei\\HwLcdEnhencement\\HwLcdEnhencement.exe" -t  REG_SZ /d "~ RUNASADMIN"  
) 
else 
(  
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "C:\\Program Files\\Huawei\\HwLcdEnhencement\\HwLcdEnhencement.exe" -t  REG_SZ /d "~ RUNASADMIN"  
)