IanC
Posts: 5
Joined: Sun Feb 02, 2014 2:05 pm

Pass APPDIR to chained MSI package

I have the need to use a chained installer, and from the user I capture the location of the system variable for [JavaHome] in Installer1 as [APPDIR], in chained Installer2 I need to register files with the same [AppDir] path as part of several custom action batch files.

How is it possible to pass [AppDir] value from Installer1 to chained MSI package, Installer2?

Background
[Installer1] has a chained packaged [Installer2]


Thanks for the help.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Pass APPDIR to chained MSI package

Hello Ian,

Please note that you can pass installer properties to the chained prerequisite, through the Properties field from the chained package properties. You can have something like that:
MY_PROPERTY=[APPDIR]
Where:
  • -MY_PROPERTY is the property from your chained package
    -APPDIR is the property which contains the path of the installation folder of your main package.
Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
IanC
Posts: 5
Joined: Sun Feb 02, 2014 2:05 pm

Re: Pass APPDIR to chained MSI package

Very helpful. I will take a look.

Return to “Common Problems”