Prev Previous Post   Next Post Next
Old 2nd December 2015, 06:13   #1
alibabavl64
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
alibabavl64 is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump