Install to founded directories - Advanced Installer Community
j.zamiska
Posts: 16
Joined: Mon Nov 04, 2013 3:28 pm

Install to founded directories

Hi,

I want install files to founded directories like:
programFilesFolder\subdir\subdir1\AppFolder
programFilesFolder\subdir\subdir2\AppFolder
programFilesFolder\subdir\subdir3\AppFolder

My idea was to create property based folder (something like "if exists programFilesFolder\subdir\%part_of_subdir_namer% set it to folder path").
So, app files will be installed to these multiple directories. Any idea how to do it? Any example?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Install to founded directories

Hello,

Easier approach is to:
- set the Application Folder to programFilesFolder\subdir\ from Install Parameters page
- add as many regular subfolders as you need from the Files and Folders page under Application Folder
- use File Duplication Operations to have the same files in all subdir#\AppFolder subdirectories

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Install to founded directories

Hello,

I'm afraid I don't fully understand what you are trying to achieve. Can you please give us more details about your installation scenario (maybe exemplify)?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
j.zamiska
Posts: 16
Joined: Mon Nov 04, 2013 3:28 pm

Re: Install to founded directories

Daniel wrote:Hello,

I'm afraid I don't fully understand what you are trying to achieve. Can you please give us more details about your installation scenario (maybe exemplify)?

All the best,
Daniel

Hello Daniel,

I have installed several versions of Java. I'm forced to use my own "cacerts" file. I want to prepare installator for "cacerts". Original "cacerts" file is located in every version of Java and I have six of them. So, I wat to install it to every Java folder which will be found during installation. Hardcoded path is not option - Java folders could change absolute path since every version of Java have own folder...
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Install to founded directories

Hello,

I'm afraid we don't have predefined support for this. However, in order to achieve what you want you can add the "cacerts" file as a temporary file in "Files and Folders" page and, then create your own custom action which will search for and iterate all Java folders and copy the "cacerts" temporary file in the found Java folders. The custom action should be added as deferred after "Install Execution Stage -> Add Resources" actions group.

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

Return to “Building Installers”