Modify Hosts file by NSIS 2.00
Hi All,
I just do a job to modify IP adresses in the hosts file.
I use a getwindowsversion function and after that, I use
a fileopen command like this :
A) For windows XP, NT, 2000:
FileOpen $1 $SYSDIR\drivers\etc\hosts r
B) And for 98,Me,95,etc... :
FileOpen $1 $WINDIR\HOSTS. r
All are OK for A) but the flagerror is set for B) just after the fileopen.
Who can help me, Please ?
Thanks a lot for your answers.