Skip to content

Inno Setup script - Improve script - #910

Merged
cyanfish merged 5 commits into
cyanfish:masterfrom
bovirus:master
Oct 24, 2026
Merged

cyanfish merged 5 commits into
cyanfish:masterfrom
bovirus:master

Conversation

@bovirus

@bovirus bovirus commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

@cyanfish

Improve Inno Setup scritps.

  • Main script

Fix an issue about license text
image
Use RTF license file without forced new line

Fix and issue about program name without ".exe".
image

  • Language script
    Add some strings for Italian language to fix some issues about base Italian language (Italian.isl).

Added Italian language support and reintroduced Vietnamese.
Updated license file path and desktop icon name.
@bovirus

bovirus commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

@cyanfish

Could you please check and merge?
Thanks-.

Italian.NameAndVersion={#AppShortName} {#AppVersion}
Italian.LaunchProgram=Esegui {#AppShortName}
Italian.AdditionalIcons=Collegamenti:
Italian.CreateDesktopIcon=Crea collegamento programma sul &desktop

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do the base language files need updating? I'd rather avoid changes to Inno strings that aren't NAPS2-specific

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cyanfish

The changes are neecssary because the originla strings (Italian.isl) are not right for the action.
You dodn't add icon on desktop.
You creatre a program shortcut on desktop and this shortcut has an icon
TTo avoid to change the base fiel (Italia.isl) that yoiu can overwrite if update the Inno Setup version the best solution is to add in CustomMessages section.

DefaultDirName={commonpf}\{#AppShortName}
DefaultGroupName={#AppShortName}
LicenseFile=..\..\LICENSE
LicenseFile=..\..\LICENSE.rtf

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's already a license.rtf file in the NAPS2.Setup folder, we should use that instead of adding a new one

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cyanfiush
The file "LICENSE" seems that is not RTF file.
It's a text file that has a forced 80 chars line that create the issue that i show with screenshot.
The file that I posted it's a real RTF file without this issue.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there is already a rtf too, please check the repo

@bovirus bovirus Oct 15, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cyanfish
I didn't see that in NAPS2.Setup is present licens.rtf.
I just see that you point in original script to
https://github.com/cyanfish/naps2/blob/master/LICENSE
that is a text file not formatted.
If you like you can change the license refrence to
https://github.com/cyanfish/naps2/blob/master/NAPS2.Setup/license.rtf
I changes the commit to point to license.rtf

[Icons]
Name: "{group}\NAPS2"; Filename: "{app}\{#ExeName}"
Name: "{commondesktop}\NAPS2"; Filename: "{app}\{#ExeName}"; Tasks: desktopicon
Name: "{commondesktop}\NAPS2"; Filename: "{app}\{#AppShortName}"; Tasks: desktopicon

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change? Icons come from the exe, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cyanfish
Because as it now uis not right (see screenshot)..
You run not the .exe file but the program.
Then like now "Run NAPS2.exe" is not right.
It's right "Run NAPS2".

@cyanfish
cyanfish merged commit 7a438bf into cyanfish:master Oct 24, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants