Page 1 of 1

How to localize Shortcut names?

Posted: Mon Jan 27, 2020 2:11 pm
by redseujac2
Installation > Shortcuts > ShortcutName

How to localize those Shortcut names, i.e. make it so that those names are translated in the correct language of the user's system language?

Re: How to localize Shortcut names?

Posted: Tue Jan 28, 2020 7:02 am
by Leo
This feature is not supported.
We will try to add it in new versions.

But there is a little trick how to make shortcuts' name localized.

If the shortcut location is <ProgramGroup>\My App
We just rename it regarding the selected language.

Use System \ Commands:

Code: Select all

File: 		<SystemDir>\cmd.exe
Parameters: 	/C IF /I <Language>==French (RENAME "<ProgramGroup>\My App.lnk" "My App in French.lnk")
Timing: 	 	Aftre Installation
Note the shortcut extension .lnk

Add this command for each language.

Also add a command to completely remove ProgramGroup folder: either select the option "Uninstallation \ Complete Uninstallation" or add on System \ Commands:

Code: Select all

File: 		<SystemDir>\cmd.exe
Parameters: 	/C rmdir /S /Q "<ProgramGroup>"
Timing: After Uninstallation

Re: How to localize Shortcut names?

Posted: Tue Jan 28, 2020 1:45 pm
by redseujac2
Thank you Leo.

It works, but at the end of installation really unaesthetic DOS cmd windows are appearing and flashing over the screen. So the workaround works but isn’t nice to look at ;)

How to run cmd silently?

Re: How to localize Shortcut names?

Posted: Tue Jan 28, 2020 3:18 pm
by Leo
To hide the DOS window change the command's option Show to Hide.

Re: How to localize Shortcut names?

Posted: Tue Jan 28, 2020 4:41 pm
by redseujac2
Thank you again Leo.

Well, I should have known that. Shame on me :oops:

Re: How to localize Shortcut names?

Posted: Thu Jan 30, 2020 10:03 am
by redseujac2
Leo wrote: Also add a command to completely remove ProgramGroup folder: either select the option "Uninstallation \ Complete Uninstallation" or add on System \ Commands:

Code: Select all

File: 		<SystemDir>\cmd.exe
Parameters: 	/C rmdir /S /Q "<ProgramGroup>"
Timing: After Uninstallation
OK, this works, but there is another inconvenience.

After uninstalling the program with the Uninstall shortcut of MyProgram in the <ProgramGroup> folder of the Start menu, the empty <InstallDir> folder in <ProgramFiles> is not removed, not even with the command <SystemDir>\cmd.exe /C rmdir /S /Q "<InstallDir>" after Uninstallation. The empty folder IS removed when applying uninstall from Control Panel > Add/Remove Programs.

How to fix that?