Old 2nd March 2020, 15:51   #1
jesseconductor
Junior Member
 
Join Date: Mar 2020
Posts: 1
Error in EnvVarUpdate.nsh after upgrading to v3

I've upgraded to v3.05 as I was getting some odd results with v2.x (it would hang on some systems even though it was run inside a docker container).

I'm now getting the following error:

code:
Error: unterminated string parsing line at macro:_IncludeStrFunction1:7
Error in macro _IncludeStrFunction1 on macroline 7
!include: error in script: "EnvVarUpdate.nsh" on line 49
Error in script "/artifacts/build/windows/MyProgrm.nsi" on line 65 -- aborting creation process



I get the same issue from lines 50 and 51 in EnvVarUpdate.nsh

Any ideas on how to correct or at least how to debug a bit more? I'm new to NSIS. MyProgrm.nsi was written by someone else and I'm picking it up...

Cheers,

Jesse
jesseconductor is offline   Reply With Quote
Old 2nd March 2020, 23:18   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,321
There were some changes to how StrFunc.nsh defines its functions.

Change the !define un.${StrFuncName} line to

Quote:
!define un.${StrFuncName} '${Un${StrFuncName}}'
but this header is old, https://nsis.sourceforge.io/EnVar_plug-in is a better alternative.

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