Prev Previous Post   Next Post Next
Old 3rd October 2021, 17:57   #1
shekara
Junior Member
 
Join Date: Oct 2020
Posts: 33
append env varable only if it is not present

I need to append an env variable in Path along with a semi-colon. currently, I use
${EnvVarUpdate} $0 "PATH" "A" "HKLM" '$2'. $2 has path value. it works. however, I need to add; after path value. when I do this, it keeps adding every time when running the installer. I need to add it only if it is not present. there is no overwrite option in the EnvVarUpdate library. other than using conditions, is there any methd.
shekara 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