Installing Multiple Applications Using Single Installer - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jjones
Posts: 68
Joined: Wed Jun 29, 2011 3:30 pm

Installing Multiple Applications Using Single Installer

Problem[/u]
I am creating an installer that installs a suite of applications. For the most basic install all the applications in the suite are installed and configured using default parameters. I would like the folder structure to look like this:

C:\Program Files\[Company Name]\[Product Name] {Main directory with no files}
C:\Program Files\[Company Name]\[Product Name]\Application1
C:\Program Files\[Company Name]\[Product Name]\Application2

On 64-bit machines, "C:\Program Files" would be replaced by "C:\Program Files (x86)"

Under Files and Folders, I created two new Regular folders, Application1 and Application2. Under Organization I have Application1 and Application2 setup as two separate features. However, when I click on the features, I cannot change the "Directory" field under General to APPDIR\Application1. I get an error "Only non-system folders and public properties can be selected!"

If I leave the above error alone and leave the Directory = APPDIR, this is what I get after I install the application:

C:\Program Files\[Company Name]\Application1
C:\Program Files\[Company Name]\Application2
C:\Program Files\[Company Name]\[ProductName]
C:\Program Files\[Company Name]\[ProductName]\Application1
C:\Program Files\[Company Name]\[ProductName]\Application2

The first two directories are not correct and I'm assuming they are there because of my inability to change the directory field. That last three directories are correct and the application runs correctly.

How can I accomplish the above task?

Thanks!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installing Multiple Applications Using Single Installer

Hello,

In order to achieve what you want you can proceed like this:
- Go to "Install Parameters" page and set the "Application Folder" field to [ProgramFilesFolder][Manufacturer]\[ProductName].
- Go to "Files and Folders" view, select the "Application Folder" from the folders tree and under it create the related folders (Application1 and Application2) using [New Folder] toolbar button.
- Build and run your project.

Let us know if this helps, otherwise give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jjones
Posts: 68
Joined: Wed Jun 29, 2011 3:30 pm

Re: Installing Multiple Applications Using Single Installer

Daniel,

Thank you for the prompt response. That's actually what I did. The issue is that on the Organization page I can't change the Directory from "APPDIR" to the two new directories I created. If you click the "..." button it lets you select them but you get the error (that I mentioned in my OP).

Jonathan
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installing Multiple Applications Using Single Installer

Hello Jonathan,

If you want to set the related feature path to a folder location from "Files and Folders" view, then you should set the related folder identifier with a public property.

Here's the steps to proceed:
- Select your folder (i.e. Application1) from "Files and Folders" view and from its context menu choose "Properties..." option. Set the "Identifier" field, from "Folder Properties Dialog", with a public property (i.e. MY_PROP).
- Select the desired feature from "Organization" page and set the "Directory" field from "Feature Properties" right pane to the related folder (Application1).
- Build and run your project.

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

Return to “Common Problems”