I'm in the process of fixing bug #26187, but keep having an issue with some custom code I'm adding to fix it. Any help would be appreciated.
Here is what I have so far, and here is the last few lines from the generator log.
I can't figure out what macro I'm defining here.
Note that I've tried with both Rename, and with the sections commented out, and both produce the same error.
I don't claim to know anything much about NSIS, but in most of the languages I know \" would equate to an escaped quote and wouldn't terminate the string in the following line:
Rename "$DOCUMENTS\Rocks'n'Diamonds\" "$DOCUMENTS\Rocks'n'Diamonds-BackupByRocks'n'DiamondsPortable"
I only quoted the strings after I thought
thatlack of quotes was the problem. It gives the error whether they're quoted or not.However, I removed the backslash anyway...bad form. It's something to do with the Rename line, I just don't know what.
looking at the code and the error I am guessing it has something to do with line 7 of code? Or is the break in text from pastebin? Maybe there is a lf or cr in there?Never mind re-read and probably my eyes“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss
You're not ending the SegmentPre macro. Each segment define includes a macro define within it and must be properly ended. So add a !macroend just before you do the start of Post.
Sometimes, the impossible can become possible, if you're awesome!
That was easy. Thanks, John. And the fix works, so I'll send this to you shortly.