Lars Gullik Bjønnes wrote:
I've posted a message to the NSIS forum, so let's see what they do with
it. http://forums.winamp.com/forumdisplay.php?s=&forumid=65

| I got an answer. It transpires that the fault was mine. Ahhh well. Mea
| culpa.

But what was the error?

"Text" and "DirRequest" widgets expect different string formats:
Text: "foo\r\nbar C:\\tbar"
DirRequest: "C:\tbar" and while we're at it "foo$\r$\nbar"

It's inconsistent, but it is documented. See the reply I got at http://forums.winamp.com/forumdisplay.php?s=&forumid=65

We can convert from one format to the other with
  ${StrNSISToIO} $0 '$PathPrefix'
which fills the register "$0" with the contents of "$PathPrefix", making the necessary transformations.

Angus


Reply via email to