Old 16th April 2018, 09:21   #1
Gluck
Junior Member
 
Join Date: Apr 2018
Posts: 14
Write a line

I want write a line of text (in portable mode) in hosts file...

What have I to write?

Thanks
Gluck is offline   Reply With Quote
Old 16th April 2018, 12:45   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,699
Have you tried searching the forum and wiki?

Portable applications and host files don't really mix since you have to be elevated to change the hosts file and you don't really want to elevate the portable application.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 17th April 2018, 10:55   #3
Gluck
Junior Member
 
Join Date: Apr 2018
Posts: 14
"... since you have to be elevated to change the hosts file and you don't really want to elevate the portable application".

What does it mean???

And If I want elevate the portable application?
Gluck is offline   Reply With Quote
Old 17th April 2018, 19:18   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,699
Quote:
Originally Posted by Gluck View Post

And If I want elevate the portable application?
You just asked about Drag & Drop in another thread and you cannot elevate if you want to be a drag target.

Elevation is not really relevant to the topic at hand, this is about text file manipulation.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
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