Get APPDIR from a chained package installation - 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!

rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Get APPDIR from a chained package installation

Hi,

is there a way to access Properties from Chained Packages?
I have a Installer-MSI, where I have a chained package included. Now I need to copy an external xml-file into the APPDIR of the CHAINED package. (It's no problem to copy this file to the APPDIR of the Installer-MSI, but this doesn't help)
Now I thought of reading the APPDIR-Property from the chained package, but I think this is not possible? I think I'll have to go with custom actions to get to know the APPDIR of the chained package. Any hints appreciated.
I'm using AI 8.6 enterprise
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Get APPDIR from a chained package installation

Hi,

I am not aware of any method that you could use to get the path of the installed chained package. This happens because all the chained packages, along with the main installer, are handled by Windows Installer into a single transaction, i.e. when Windows Installer is making the changes on the end user's machine, the files/registry entries from all installers are placed at the same time on the machine, even if the UI seems separately.

Another method that you can use is to set the chained package as global prerequisite instead, therefore installing before the main MSI. In this case you could create a search for the installation path of the global prerequisite and use it in the main package. Please note that using prerequisites implies that an EXE is generated as output package by Advanced Installer.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Re: Get APPDIR from a chained package installation

So if I get you right, you mean, that I can't read the Data/Properties/ComponentIDs of the chained package, because its data is not "commited", yet?

Return to “Common Problems”