Old 30th January 2015, 15:22   #1
rtobyr
Junior Member
 
Join Date: Jan 2015
Posts: 1
Adding to the system %PATH%

So the NSIS documentation titled "Path Manipulation" at http://nsis.sourceforge.net/Path_Manipulation has a big red box at the top that reads, "WARNING: Strings longer than ${NSIS_MAX_STRLEN} will get truncated/corrupted. Do NOT use this function to update %PATH%".

How do I manipulate %PATH% with NSIS?
rtobyr is offline   Reply With Quote
Old 30th January 2015, 16:13   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Why do you need to? Consider using the preferred method instead if possible:
https://msdn.microsoft.com/en-us/lib...=vs.85%29.aspx

Stu
Afrow UK is offline   Reply With Quote
Old 31st January 2015, 00:46   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,321
Why do you think you need to change %Path%?

Ideally you should design your application so that you don't rely on a non-standard %Path%. It is a shared resource and I personally hate applications that feel they need to touch it.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 31st January 2015, 04:27   #4
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 892
I was working on a plugin to add and remove specific paths to the environment variable last year, but it still isn't usable yet.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
path, path manipulation

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