How to localize Shortcut names?

Common questions about using Actual Installer.
Post Reply
redseujac2
Posts: 14
Joined: Sun Nov 17, 2019 5:15 pm

How to localize Shortcut names?

Post 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?
Attachments
ShortcutName.jpg
(39.87 KiB) Not downloaded yet
Leo
Site Admin
Posts: 455
Joined: Fri Jan 22, 2010 12:40 pm

Re: How to localize Shortcut names?

Post 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
Leo,
Actual Installer Team
https://www.actualinstaller.com
redseujac2
Posts: 14
Joined: Sun Nov 17, 2019 5:15 pm

Re: How to localize Shortcut names?

Post 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?
Leo
Site Admin
Posts: 455
Joined: Fri Jan 22, 2010 12:40 pm

Re: How to localize Shortcut names?

Post by Leo »

To hide the DOS window change the command's option Show to Hide.
Leo,
Actual Installer Team
https://www.actualinstaller.com
redseujac2
Posts: 14
Joined: Sun Nov 17, 2019 5:15 pm

Re: How to localize Shortcut names?

Post by redseujac2 »

Thank you again Leo.

Well, I should have known that. Shame on me :oops:
redseujac2
Posts: 14
Joined: Sun Nov 17, 2019 5:15 pm

Re: How to localize Shortcut names?

Post 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?
Post Reply