|
|
#1 |
|
Junior Member
Join Date: Apr 2013
Posts: 29
|
Write in hosts
I use this:
RequestExecutionLevel admin ...... ...... ExecWait "$INSTDIR\x.bat" In x.bat i have IF EXIST %windir%\SYSTEM32\DRIVERS\ETC\HOSTS*.* ATTRIB +A -H -R -S %windir%\SYSTEM32\DRIVERS\ETC\HOSTS*.* > NUL echo 127.0.0.1 something.com >> %windir%\system32\drivers\etc\hosts .... I tried on XP. work OK. In Win7-10/64 work random. Most more didn't work. I tried run installer (in installer exist command RequestExecutionLevel admin). never ask for rights. I tried too RunAsAdministrator (rightclik).. If i try "Runn as administrator on Total commander, go to hosts, F4-edit, made the change, save, work correctly. Where is the misjate? Thank you |
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|