7998: ANSI targets are deprecated
Asked Answered
C

1

15

How can I resolve "7998: ANSI targets are deprecated"?

When I add Unicode True

I get error,

Error: Can't change target charset after data already got compressed or header already changed!
Error in script -- on line 58
-- aborting creation process

Carol answered 10/11, 2020 at 8:5 Comment(3)
Please post a Minimal, Reproducible Example that illustrates your problemResignation
Add "Unicode True" where? What is the context?Blatt
If you think about it, once you starting writing, to change from pencil to pen and back is destructive. Saying "change to pencil" should be done before writing begins at all. Same thing that message is saying.Negligence
D
16

Unicode True needs to be set very early in your .NSI file, before any !include statements and before any File commands.

Dermott answered 10/11, 2020 at 12:28 Comment(2)
It can be after !include statements. NSIS Documentation: It can only be used outside of sections and functions and before any data is compressed.Thundercloud
@Thundercloud It depends on the header, it is better to just put it first in the script.Dermott

© 2022 - 2024 — McMap. All rights reserved.