Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change breaks with the non-unicode InnoSetup 5.x version... it cant read the iss file. #297

Closed
fvarrui opened this issue Feb 13, 2023 · 11 comments
Labels
enhancement New feature or request fixed Issue fixed and release pending merged Changes merged into devel branch

Comments

@fvarrui
Copy link
Owner

fvarrui commented Feb 13, 2023

          FYI: This change breaks with the non-unicode InnoSetup 5.x version... it cant read the iss file. 

This IS version is old, but this could be added to the documentation. (use 6.x or 5.x Unicode)

Originally posted by @commi in #271 (comment)

@lhDream
Copy link
Contributor

lhDream commented Feb 14, 2023

We can increase the configuration and set not to write BOM. 👀

@commi
Copy link
Contributor

commi commented Feb 14, 2023

That would also work... but since the iss scripts are written in UTF-8, this can create garbled strings in IS 5. So maybe the BOM is a nice 'safeguard' against this:)
In any case you could add to https://github.com/fvarrui/JavaPackager/blob/master/docs/windows-tools-guide.md that IS 5 non-unicode is not supported, because there is just no way to support both and having umlauts in the app name for instance.

Edit: made #299

@fvarrui
Copy link
Owner Author

fvarrui commented Feb 14, 2023

We can increase the configuration and set not to write BOM. 👀

I was thinking of finding out the version of Inno Setup using the command iscc /? or something like that, and then decide whether to add BOM to the .iss files or not ... but your approach is much simpler and better 😅

@fvarrui
Copy link
Owner Author

fvarrui commented Feb 14, 2023

winConfig.iss.bom=true|false?

@fvarrui
Copy link
Owner Author

fvarrui commented Jun 30, 2023

I think a system that allows adding/deleting the BOM in the files generated from the Velocity templates would be more flexible, allowing you to select the template to which it's applied.

I mean:

<templates>
    <template>
        <name>iss.vtl</name>
        <bom>true|false</name>
        [here we can add new options for future features related to templates]
    </template>
</templates>

@fvarrui fvarrui added the working on Work in progress on this issue label Jun 30, 2023
@fvarrui
Copy link
Owner Author

fvarrui commented Jun 30, 2023

Work in progress in branch issue-297

@fvarrui
Copy link
Owner Author

fvarrui commented Jul 1, 2023

Just published 1.7.3-20230701.111610-13 snapshot version.

How to disable UTF-8 with BOM for iss files:

<templates>
    <template>
        <name>windows/iss.vtl</name>
        <bom>false</bom>
    </template>
</templates>

UTF-8 with BOM is enabled by default just as it was before.

@fvarrui fvarrui added feedback Waiting for feedback and removed working on Work in progress on this issue labels Jul 1, 2023
@fvarrui
Copy link
Owner Author

fvarrui commented Aug 21, 2023

Can we release this feature in 1.7.4?

@commi
Copy link
Contributor

commi commented Aug 21, 2023

I see no reason why not:)

@fvarrui
Copy link
Owner Author

fvarrui commented Aug 21, 2023

Branch issue-297 merged into devel, ready to be released in v1.7.4

@fvarrui fvarrui added merged Changes merged into devel branch fixed Issue fixed and release pending and removed feedback Waiting for feedback labels Aug 21, 2023
@fvarrui
Copy link
Owner Author

fvarrui commented Aug 30, 2023

1.7.4 released to Maven Central

@fvarrui fvarrui closed this as completed Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed Issue fixed and release pending merged Changes merged into devel branch
Projects
None yet
Development

No branches or pull requests

3 participants