Announcement

Collapse
No announcement yet.

Adding to the system %PATH%

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #2
    Why do you need to? Consider using the preferred method instead if possible:
    This topic discusses how applications can expose information about themselves necessary to enable certain scenarios.


    Stu

    Comment


    • #3
      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

      Comment


      • #4
        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

        Comment

        Working...
        X
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎