One MSI for Multiple MSIs - 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!

vicky
Posts: 66
Joined: Thu Aug 21, 2008 10:52 am

One MSI for Multiple MSIs

Hi!

I have three different MSIs for my three products. Now, i want to make one MSI and asked user to choose.
But, my products depend on each other, i.e. if product_1 is installed, then product_2 will be installed.
and, each of the products will be installed after meeting certain conditions.

How could i define custom actions ,registry entries, search entries etc. for each product, if they are in one MSI?
Can anyone help me to find out that how could i achieve this? If possible, plz provide me a helpful tutorial.


Regards,
Vicky
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: One MSI for Multiple MSIs

Hi Vicky,

For what you need you can try using the chained packages feature. However, this requires Windows Installer 4.5 installed on the target machine. Another approach would be to add the other packages as prerequisites for the main package.

Please note that two MSI-based installations cannot run at the same time. Therefore, it is not recommended to launch other MSI packages while your package is installing.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vicky
Posts: 66
Joined: Thu Aug 21, 2008 10:52 am

Re: One MSI for Multiple MSIs

Hi Cosmin!

Can't i do it using features? If so, then plz guide me for that or provide me a good tutorial.

Regards,
Vicky
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: One MSI for Multiple MSIs

Hi Vicky,

I'm afraid that this cannot be done by using features.
A solution which uses features would be to use merge modules instead of MSI packages. This way you can create a feature for each merge module and let the user choose which ones will be installed.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vicky
Posts: 66
Joined: Thu Aug 21, 2008 10:52 am

Re: One MSI for Multiple MSIs

Hi Cosmin!

I think , you did not understand what i want. Actually, i want to install all of my three products using features, i am not talking about MSI. I was using three MSI for them, but, now, i want one MSI which will installed all of my products, using features.

I will not use any one of my previous MSIs for this new MSI, this will a new enterprise product using AI 6.4.1.

So, plz guide me , how could i achieve this?

Regards,
Vicky
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: One MSI for Multiple MSIs

Hi Vicky,

Your three products can be configured just like any other product. The only difference is that you can place all resources of a product into a specific feature. Here are the steps you can take:
- go to the Organization page and create three features, one for each product
- make sure that the first feature is the current one (its name should be bold)
- if its not, you can right-click it and select the "Set as Current" menu
- in the "Files and Folders" page add the first product and configure it (create its registry entries, environment variables etc.)
- since the first feature is the current one, everything will be added to it
- set the second feature as current
- add the second product and configure it
- set the third feature as current
- add the third feature and configure it

This way each feature will contain a product. When you need to modify a product, you make its feature the current one. After the products are configured you can add the "SetupTypeDlg" dialog in the "Dialogs" page. This dialog allows the user to select a custom installation and choose which features will be installed.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vicky
Posts: 66
Joined: Thu Aug 21, 2008 10:52 am

Re: One MSI for Multiple MSIs

Hi Cosmin!

Many many thanks for your reply. Please help me sort out one thing that i was using number of custom actions for my products, now, in this case, how could i use them?


Regards,
Vicky
vicky
Posts: 66
Joined: Thu Aug 21, 2008 10:52 am

Re: One MSI for Multiple MSIs

Hi Cosmin!

How could i specify version for them because all the products have different versions? Is it possible?

Regards,
Vicky
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: One MSI for Multiple MSIs

Hi Vicky,
Please help me sort out one thing that i was using number of custom actions for my products, now, in this case, how could i use them?
I'm not sure I understand what you mean. Can you please give me more details about this?
How could i specify version for them because all the products have different versions? Is it possible?
Since your are using a single installation package, you can have only one version because the three products becomes only one product.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vicky
Posts: 66
Joined: Thu Aug 21, 2008 10:52 am

Re: One MSI for Multiple MSIs

Hi Cosmin!

Actually, I was using three MSI for three different products, each MSI has custom actions for that product.
Now, if, i am using only one MSI instead of three, then how could i able to attach those custom actions, there will be confliction between them? plz help me sort out this problem.
One more thing, can i attach custom actions to features?

Regards,
Vicky
Last edited by vicky on Fri Sep 26, 2008 11:39 am, edited 2 times in total.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: One MSI for Multiple MSIs

Hi Vicky,
how could i able to attach those custom actions?
You can try recreating the custom actions in the Custom Actions page. I'm afraid that you cannot import the custom actions from the existing packages (importing a MSI would import everything in it).
can i attach custom actions to features?
No, but you can condition a custom action based on a feature. In the Edit Condition dialog you can insert a Feature Action or a Feature State.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vicky
Posts: 66
Joined: Thu Aug 21, 2008 10:52 am

Re: One MSI for Multiple MSIs

Hi Cosmin!

Thanks for ur valuable replies. Could u please tell me what is the significant of &feature1, !feature1 , here, feature1 and is name of feature in organization page. what values are supported for them in AI 6.4.1?

Also, i am developing an enterprise project and unable to create a custom dialog i.e. a blank dialog, on which , i can add controls of my choice. Is this type of dialog is not available in enterprise project?

Regards,
Vicky
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: One MSI for Multiple MSIs

Hi Vicky,

The "&" character in front of a feature identifier defines a feature action (what the package will do with the feature). The "!" character used with a feature identifier defined a feature state (how the feature is on the target machine. The possible values are explained here:
Conditional Statement Syntax
Examples of Conditional Statement Syntax
i am developing an enterprise project and unable to create a custom dialog
In order to create a custom dialog you can use the Dialogs page. Simply use the "New Dialogs" toolbar button or context menu to create a new empty dialog. Please note that the User Guide contains the Create a new dialog tutorial which may help you.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”