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!

shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Merging multiple installers

Hi,

I have following three setups
- "Teles DC" which is a "32 bit package type" and "per-user installation type"
- "Teles Outlook Addin" which is a "32 bit package type" and "per-user installation type"
- "Teles TSP" which is a "mixed 32/64 bit package type" and "per-machine installation type"

Now, I have go a requirement to merge these setups into one
- "Teles DC" should appear as primary component/mandatory component
- "Teles Outlook Addin" and "Teles TSP" should appear as optional components.

Can you please help me with this?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Merging multiple installers

Hello Rohan,

You can create another installation package that will include these existing installation packages as as Feature-based prerequisites.
Since you always want to install the Teles DC package, then you can enable the Always install the feature from the feature properties. So, the user has no possibility to change it's installation state.

You can also take a look on the Add prerequisite article which may be useful to you.

Please let us know if that helped, otherwise give us more details about your specific scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Merging multiple installers

Thanks, I will try this and get back to you.
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Merging multiple installers

Hi,

Customer has requested for a work around
- "Teles DC" would show one more dialog with two check boxes(i.e after end user license agreement)
-----Install "Teles TSP"
-----Install "Teles Outlook Addin"
-Depending on the user selection, at the end of installation, these additional installers would be launched.

I have implemented this by doing the following
- Added a new dialog(just below the LicenseAgreementDlg), which has two check boxes
- Added two "custom actions"(i.e Launch installed file which would launch "Teles TSP" and "Teles Outlook Addin" installers)
- Dragged these "custom actions" just below the "InstallFianlize".

Now when these additional(i.e "teles tsp") installers are launched, I get "Another installation is in progress...." error message in the main installer.

Can you please help me in fixing this. If you need samples, I could provide the same

Regards,
Rohan
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Merging multiple installers

Hi Rohan,
Now when these additional(i.e "teles tsp") are launched I get "Another installation is in progress...." error message in the main installer.
Usually, if you launch another MSI package while an MSI installation is in progress, you will see this message. This is happening because Windows Installer allows only one MSI-based process to run at any given time.

In order to have a better view about this, can you please send us the .AIP(project file) to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Merging multiple installers

Thanks, I have just mailed you the sample aip files.
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Merging multiple installers

Hi Dan,
Thanks, The suggested changes mentioned by you has helped me in achieving the requirements mentioned by the customer.
I would need one more small change
- Currently, if the Addin is already installed, then DC launches the Addin installer (in Maintenance mode). Is it possible to change this behavior?
i.e. Suppose if the same Addin version is already installed in the machine, DC installer should NOT launch the Addin Installer(i.e. in Maintenance mode). I have tried using the "Install prerequisites based on the condition", it did not work(may be because some mistakes from my side).
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Merging multiple installers

Hi Rohan,

This may happens if the Addin prerequisite is installing, although it shouldn't (it is already installed).
So, in the Install Conditions tab of the prerequisite you should enable the Install prerequisite based on conditions options.

Then, you should make make sure that you define a valid install condition.
For example, you can select from the Prerequisite Search Dialog the criteria which you think fit best for your scenario.

E.g.
Product Version (identify by Product Code) and in the ProductCode: field you add the product code of the Addin prerequisite.
You can test your search criteria by using the [Evaluate...] button.

If there is anything else I can help with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Merging multiple installers

Thanks. I have used "Product Version(Identify by the upgrade code)", which is working fine.

But the only problem is whenever I update the Addin Setup(i.e change the version number), I also need to come to DC and mention this version number in "Product Version(Identify by the upgrade code)"

Is it possible to pick up the version number from "AddIn Setup.exe"?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Merging multiple installers

Hi Rohan,

I'm afraid you cannot get the ProductVersion of the prerequisite directly.
You need to make sure that you defined properly install conditions for your prerequisite.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Merging multiple installers

I was thinking one more alternate solution, do let me know whether it is possible
- I would add one more property say "TSP_VERSION" in "install parameters"
- Can I use this property in "Install Conditions"?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Merging multiple installers

Hi Rohan,

I'm afraid that in the Minimum and Maximum field from the edit search dialog you cannot use strings values (e.g. installer properties).

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Merging multiple installers

Thanks Dan. We will do this manually.

May be you could consider this as a feature(for the future versions) request.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Merging multiple installers

You're welcome Rohan,

We will analyze this scenario and we'll see what improvements can be made but for the moment there are not immediate plans. Thank you for your suggestion.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Merging multiple installers

Thanks Dan.

I have two more related questions.
1) Since Addin and TSP are dependent on DC, is it possible to uninstall these(TSP and Addin) when the user uninstalls the DC? If so, can you please help me with the steps?
2) I wanted to pass the "langcode" selected in the DC, to the prerequisite(so that language selection dialog is not popped up)
Can I pass "/exelang [ProductLanguage] /qb" in the Prerequisites->Setup files->Install command Lines

Regards,
Rohan

Return to “Building Installers”