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!

UriaLevy
Posts: 17
Joined: Mon Sep 10, 2012 11:26 am

All in one setup from multiple existing setups [Solved]

Hi

I have a system composed of 4 parts. The parts can be installed each on it own machine (computer) or all in one machine.
Each of the 4 parts already have a complete Advanced installer project which creates a setup file.
My problem is creating a unified "all-in-one" installer, combining the 4 parts of the system.
Allowing the user to install all the parts with default (predefined, non-changeable ) parameters or let the user choose any "Custom" combination of the 4 parts with his input parameters.

for example:
In an "all-in-one" setup the "serverName" parameter will be set to localhost unchangeable during setup, while in the "Custom" setup the "serverName" parameter will be set by the user during the setup.

thank you
Uria
Last edited by UriaLevy on Mon Nov 05, 2012 8:54 am, edited 1 time in total.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: All in one setup from multiple existing setups

Hello Uria and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve what you want you can add all your setup files as feature-based prerequisite to your main installation project. Then, in the "Install Command Lines" fields, from "Prerequisites -> Setup Files" tab, you can set a public property (i.e. SERVER_NAME) for your prerequisites packages.

Also, if you want to condition the related feature-based prerequisite installation, then you can take a look on our "Show a custom feature selection dialog" article.

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
UriaLevy
Posts: 17
Joined: Mon Sep 10, 2012 11:26 am

Re: All in one setup from multiple existing setups

Hi

I was hoping to manage all the setups from a one solution, some thing along the line of importing each of the setup as feature, then do a customized install.
Your idea of using the featured based prerequisites may be good for me also, ill update once ill get a chance (time) to implement it.

Thank you
Uria
UriaLevy
Posts: 17
Joined: Mon Sep 10, 2012 11:26 am

Re: All in one setup from multiple existing setups [Solved]

The suggested scenario is working for me quite well.
Is there a way to change the command line options of the prerequisites when choosing custom install instead of all-in-one?
for example:
When All-in-one use "/passive /norestart" cmd options, while in custom installation use only "/norestart" or no cmd options at all.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: All in one setup from multiple existing setups [Solved]

Hello Uria,

In order to achieve what you want you can use a public property (e.g. MYPROP) in the "Install Command Lines" fields which will be set accordingly with the user selection.
Here are the steps to proceed:
- Go to "Dialogs" page and add a custom feature selection dialog containing a radio button group with two radio button controls.
- Select the radio button group and set the "Property Name" field, from "Properties" right pane, to MY_RADIO.
- Select the first radio button and set the "Value" field, from "Properties" right pane, to 1 and "Text" field to All_in_one.
- Select the second radio button and set the "Value" field, from "Properties" right pane, to 2 and "Text" field to Custom_install.
- On the [Next>] button and add two "Set installer property value" published events like this:
  • Name: [MYPROP]
    Argument: /passive /norestart
    Condition: MY_RADIO = "1"

    Name: [MYPROP]
    Argument: /norestart
    Condition: MY_RADIO = "2"
- Go to "Prerequisites -> Setup Files" tab and in the "Install Command Lines" fields add the related property (MYPROP).
- Build and run your project.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
UriaLevy
Posts: 17
Joined: Mon Sep 10, 2012 11:26 am

Re: All in one setup from multiple existing setups [Solved]

thank you for the quick reply.
I'm currently using "SetupTypeDlg", I'll try implementing your suggestion on the "SetupTypeDlg" dialog and let you know how it went.

Thank you again
Uria
UriaLevy
Posts: 17
Joined: Mon Sep 10, 2012 11:26 am

Re: All in one setup from multiple existing setups [Solved]

Your suggestion woks perfectly.
Now i have completely non interactive setup when all-in-one is used and interactive when custom installation is chosen.

Thank you
Uria
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: All in one setup from multiple existing setups [Solved]

You're welcome. I'm glad you got this working.

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

Return to “Building Installers”