Markus
Posts: 11
Joined: Fri Mar 05, 2010 10:49 am

Localized Start Menu folders

Hello,

is it possible to create localized Start Menu folders? Advanced Installer does not accept any variables in the name fields. Is this problem maybe related to this post: http://www.advancedinstaller.com/forums ... 35&start=0


Thanks.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Localized Start Menu folders

Hello,
is it possible to create localized Start Menu folders?
Yes, it is possible. To achieve this behavior, you can localize the value of a public property and then use the public property's name in a "Directory Set with Formatted" custom action.
Advanced Installer does not accept any variables in the name fields. Is this problem maybe related to this post: viewtopic.php?f=2&t=11835&start=0
The Target and Source Name text fields are pseudo formatted. This means the property references from the fields are replaced with the value of the respective properties at build time.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Markus
Posts: 11
Joined: Fri Mar 05, 2010 10:49 am

Re: Localized Start Menu folders

Thanks for the reply.
I added a "Directory Set with Formatted" custom action under "InstallUISequence" and then "ExecuteAction". It wasn't possible anywhere else. So i don't know if this is correct.
But it is still not possible to create a Start Menu folder based on a property. When I choose "New Folder -> Property Based" a folder folder is inserted at the end of "Target Computer" without "[|*]". When I try to set target or source name to a property, e.g. "[|Test]", I cannot close the dialog because of an error message.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Localized Start Menu folders

Hello,
I added a "Directory Set with Formatted" custom action under "InstallUISequence" and then "ExecuteAction". It wasn't possible anywhere else. So i don't know if this is correct.
This custom action can be scheduled only after the CostFinalize standard action.
When I choose "New Folder -> Property Based" a folder folder is inserted at the end of "Target Computer" without "[|*]".
This is the normal behavior of a property based folder.
When I try to set target or source name to a property, e.g. "[|Test]", I cannot close the dialog because of an error message.
You cannot change the target or source name of a property based folder. Those values must point to its actual path.

There is no need for a property based folder in your case. All you need is a regular Start Menu subfolder. You must set this subfolder's name using the "Directory Set with Formatted" custom action. The custom action's formatted value will be a reference to your localized property.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Markus
Posts: 11
Joined: Fri Mar 05, 2010 10:49 am

Re: Localized Start Menu folders

Hello,
I created now a "Directory Set with Formatted" under "InstallUISequence" -> "CostFinalize". With this entry the installation does not execute at all. The error message is "Could not access network location Property.PROP".


Regards
Markus.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Localized Start Menu folders

Hello Markus,

This type of error usually occurs when the property is not localized for all the languages.
Also, the Formatted Text field must be expanded into a valid absolute path in order for the custom action to work. You can find some folder path examples in the "Directory Set with Formatted" description as well as the other important details you need to have in consideration to make the custom action work properly.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Markus
Posts: 11
Joined: Fri Mar 05, 2010 10:49 am

Re: Localized Start Menu folders

Hello,
is still does not work, I receive the same message during install, even in the original language. The text is translated for all languages.
Formatted text is: "[ProgramMenuFolder][TestFolder]"
Directory: ProgramMenuFolder

Value of the property: MenuFolder

Something is still wrong. I tried different values for the property but all do not work.


Regards
Markus.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Localized Start Menu folders

Hi Markus,

The directory your "Directory Set with Formatted" custom action points to must be a subfolder of ProgramMenuFolder and not the ProgramMenuFolder itself. The formatted value should be something like:

Code: Select all

[ProgramMenuFolder][MY_LOCALIZED_PROPERTY]
where [MY_LOCALIZED_PROPERTY] is a reference to your localized public property. You used a private property.

Please see my attached project.

Regards,
Mihai
Attachments
DirectorySetWithFormattedSample.aip
(8.7 KiB) Downloaded 641 times
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ndoran
Posts: 13
Joined: Thu May 03, 2018 11:48 pm

Re: Localized Start Menu folders

I don't see the Directory Set with Formatted at the link below any more. Has this been deprecated?

I am trying to dynamically create the Program Files folder name, and this is the closest post I've seen to what I'm trying to do.

http://www.advancedinstaller.com/user-g ... #section26
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Localized Start Menu folders

Hello and welcome to out forums,

Just use the "Set directory path" custom action type. This is the correspondent of the old "Directory Set with Formatted" custom action.

If you have any further questions or doubts just let me know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ndoran
Posts: 13
Joined: Thu May 03, 2018 11:48 pm

Re: Localized Start Menu folders

Thanks for getting back to me. I ended up solving the problem a different way - I created two directories with "Install folder content into the parent folder" checked with mutually exclusive Conditions.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Localized Start Menu folders

You are always welcome.

I'm glad you got this solved.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”