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!

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

Re: Merging multiple installers

Hi Rohan,
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?
In the Uninstall using this command line field from the Setup tab of your prerequisites you can add the corresponding command line so the prerequisites be uninstalled when your main installation package is uninstalled too. Here's the Msiexec.exe Command Line which may be useful to you.
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
Indeed, in the Install Command Line section from the Setup tab of the prerequisite you can pass optional command lines for launching the prerequisite.
Please take a look on the EXE setup file article which may be useful to you.

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 will try these on Monday, 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 Dan,

Thanks, I could solve the "Prerequisite" language selection problem.

But I could not the get " 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?" working.

After reading through the "help", I understand that in the "Prerequisites"->"Uninstall using the command line" needs to have "/uninstall <product_code>/<path_to_package>"
- I could not provide the <product_code> because it would change for every upgrade. I tried using the upgrade_code(which does not change for upgrades) which does not work.
- I can not use <path_to_package> because during the installation, I would not know this.

Can you please help me in solving this?

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

Re: Merging multiple installers

Hi Rohan,

I'm afraid we don't have support for this, to update the Product code of the prerequisite if this has been changed. It is only detected when you add the related prerequisite and enable the Uninstall using this command line option from the Setup files tab of the prerequisites.
I have added this improvement on our TODO list and it will be available in a future version of Advanced Installer. Thank you for your suggestion.

As a workaround, you can create a public property in the Install parameters page (e.g. PRODUCT_CODE_ADDIN). Then, you can add this property in the Uninstall using this command line field from the feature properties (e.g. /x [PRODUCT_CODE_ADDIN] /qb).
In order to update this property, you can use a script code which will parse the Addin project file (.AIP file), get the new ProductCode and set the PRODUCT_CODE_ADDIN property with the corresponding value.

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

Hi Dan,

I have done the following
- DC installer contains the "uninstall using the command line" for tsp which is "/x {A0F90011-D0BA-4C93-8EEA-BD72DE10B41A} /qb"

Here, I face two problems
1) When I uninstall DC from Add/remove programs, I get "windows Installer" dialog(exactly same as msiexec /?). So I guess some parameters are not right.
2) When I uninstall the DC using the setup file(i.e "Remove" in modify/repair/remove), I guess it does not even invoke the TSP uninstaller.

Note: I have also attached the sample files, please build tsp, addin, and DC in the same order.
Test install.zip
(253.37 KiB) Downloaded 603 times
Can you please help me with this?

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

Re: Merging multiple installers

Hi Rohan,

Since you are using .EXE files as prerequisites you should use the following command line statement in the Uninstall using this command line: field from the Prerequisite Setup Files Tab:

Code: Select all

/x  // /qb
Please note that the /x {9900C488-9251-45A6-AEA9-11D1E78CE08A} /qb command line statement is available for .MSI installation packages.

Please let me know if that helped.

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

Thank you Dan. This is working :-)

I do appreciate your help.

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

Re: Merging multiple installers

You're welcome Rohan,

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

Hi Dan,

This worked on my development(which has windows xp) machine. However when tested on Vista(32 bit), uninstall does not seems to be working as expected.

We found the following issue
- When the "DeskTopControl" is uninstalled(from Control panel->add/remove) TSP gets uninstalled properly. But for "Outlook Addin" we get the "Language selection" dialog box and the installation fails.

I have mailed you the sample aip files for reproducing this issue, steps to reproduce
- Unzip DesktopControlAv.zip
- build OutlookAddin\setup-windows-386.aip
- build \TSP\setup-windows-386.aip
- build \UCSoftphone\setup-windows-386.aip
- install DC(from UCSoftphone\Setup Files\TELES.DC.BUILD\TELES.DesktopControl-windows-386.exe)
- Uninstall DesktopControl(from Control panel->add/remove)

Note: We also found this to be not working in 32-bit Windows 7 and 64-bit Windows vista

If you need any help in reproducing the problem, do let me know.

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

Re: Merging multiple installers

Hi Rohan,

I've tested your scenario and I've replicate it.
Currently, this is under investigation and as soon as I have a conclusive answer I'll get back to you.

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

Hi Dan,

After doing the changes mentioned by you, it is working fine.
This is happening because the install type for the "Outlook AddIn prerequisite" is set "Per-User only (with Administrator right required)" and unfortunately, the "AI_LaunchChainer" custom action which launch your prerequisite uninstall process runs under SYSTEM account.

A workaround is to impersonate the "AI_LaunchChainer" custom action.
In order to achieve that you can go in the "CustomAction" table from the "Table Editor" page and set the "1266" flag in the Type column for "AI_LaunchChainer" action.

Please note that this workaround has a disadvantage. You cannot deployanymore your installation package (UCSoftphone) through the GPO.

Return to “Building Installers”