switched from 6.2.0 to 6.2.2, what happened to CRLF?

89 views
Skip to first unread message

Harvey Brofman

unread,
Aug 27, 2023, 11:20:31 PM8/27/23
to innosetup
I am getting undeclared identifier CRLF errors when compiling after the update.  I didn't see anything that seemed related to this.

is there a work around?

thanks
Harv

Eivind Bakkestuen

unread,
Aug 28, 2023, 7:35:53 AM8/28/23
to inno...@googlegroups.com
Is there a source snippet so we can see how it's used?

--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/innosetup/9a2c3c0d-e8b1-4a20-9dc5-90c15061d771n%40googlegroups.com.

Harvey Brofman

unread,
Aug 29, 2023, 1:20:22 PM8/29/23
to inno...@googlegroups.com
sorry for the delay, was tied up with something else yesterday. Here are two uses:

#sub ReadAndSaveLineToFile
  #Define FLine = FileRead(FH2)
  ;[2022/06/03 hb] handle special characters that break the serializer in .net
  ;[2022/10/18 hb] U&C was not being handled directly, fixed. [2023/04/18 hb] added support for && too
  #Define FLine StringChange(FLine, ' & ', ' & ')
  #Define FLine StringChange(FLine, ' && ', ' && ')
  #Define FLine StringChange(FLine, 'U&C', '&')
  #Define FLine StringChange(FLine, '<', '&lt;')
  #Define FLine StringChange(FLine, '>', '&gt;')
  #Define FLine StringChange(FLine, "'", '&apos;')
  #Define FLine StringChange(FLine, '"', '&quot;')
  #expr SaveStringToFile(InfoFile, FLine + CRLF, true, false)
#endsub

  #elif Pos("OKUpdateMessage", FileLine) > 0
    #define S=Copy(FileLine, Pos('=', FileLine) + 2, 50)
    #expr SaveStringToFile(InfoFile, '<OKUpdateMessage>' + S + '</OKUpdateMessage>' + CRLF, true)
    #pragma Message 'OK: ' + S
  #endif

this has worked up through 6.2.0

regards,
Harv

--
You received this message because you are subscribed to a topic in the Google Groups "innosetup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/innosetup/LTTJhDGCtVg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to innosetup+...@googlegroups.com.

Otomatic

unread,
Aug 30, 2023, 10:27:09 AM8/30/23
to innosetup
> #expr SaveStringToFile(InfoFile, FLine + CRLF, true, false)
#expr SaveStringToFile(InfoFile, FLine + #13#10, true, false)

Wilenty org

unread,
Aug 30, 2023, 2:37:23 PM8/30/23
to innosetup
Hello Harvey Brofman,
the CRLF in the PreProcessor is defined as: NewLine
https://jrsoftware.org/ispphelp/topic_predefinedvars.htm

Please look at the attached example.
I think simple example is better to check than fully modifying your code.

Greetings,
Wilenty
PrePocCRLF.iss

Harvey Brofman

unread,
Aug 30, 2023, 3:02:10 PM8/30/23
to inno...@googlegroups.com
Thanks, Wilenty good insight

#define CRLF NewLine

Seems to have addressed the issue. I guess this was previously defined somewhere by default.

regards,
Harvey

--
You received this message because you are subscribed to a topic in the Google Groups "innosetup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/innosetup/LTTJhDGCtVg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to innosetup+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages