registry item for folder names - Advanced Installer Community
IFS-Dragon
Posts: 19
Joined: Thu Apr 17, 2008 11:26 am

registry item for folder names

Hi,

Another simple question.

I have a AI project where each time it is used we are adding or removing follders in the files and folders section but we are only installing the contents on the application folder and not creating the folder(s) on the client machine.

I want to add a registry item which shows what folders are added. I only need the names of the folders not the contents of it. So for example I'm adding folders Folder001, Folder002 and Folder005 and I want the registry to show this. It can be a list or individual items etc.... so long as theres a record of this.

Can this be done?.

Thanks
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: registry item for folder names

Hi,

Here is what you can try:
-- you can go to Registry page in Advanced Installer and create a new registry value where you desire
-- in this registry value you will simply have to enter the identifiers of the folders like this, between square parentheses:

Code: Select all

[New_Folder_Dir]
Please note that this registry entry will be removed when the package is uninstalled, it is available only as long as the product is installed on your machine.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
IFS-Dragon
Posts: 19
Joined: Thu Apr 17, 2008 11:26 am

Re: registry item for folder names

Hi Bogdan

Thank you for your reply.

Unfortunately, this shows the full path of where the folder is ie "c:\program files\co name\product" etc .. and all I want is just the last folder name.

Is it possible to have a registry item which shows a list of sub-folders from the parent folder

Thanks
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: registry item for folder names

Hi,

You can use the same approach, but instead of entering the identifier simply type the name of the folder manually, without the square quotes.

Please note that you will have to update the list of folders from the registry value manually each time you add or remove a folder from your project, this cannot be done automatically by Advanced Installer.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”