• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 207
  • Last Modified:

Windows Installer - using it as an Add-in installer

I am trying to install two programs within the same [TargetDir] folder.   The first program is the main app...the second is an "add-in" for the main application.   When I try to build an MSI for the second application, I want to read in the [TargetDir] from the first applicaiton.  The problem is that .NET doesn't seem to have a friendly way reading in a directory from an existing MSI and setting it's own [TargetDir] variable equal to it.

I've tried put a variable into the registry and read it out during the installation of the second program, but .NET doesn't like that either.    Is there a way to do this?

Thank you!

Todd
0
autigent
Asked:
autigent
1 Solution
 
Svetlin_PanayotovCommented:
Check this in MSDN:
http://msdn.microsoft.com/library/en-us/msi/setup/creating_a_patch_package.asp
And:
http://msdn.microsoft.com/library/en-us/msi/setup/changing_the_target_location_for_a_directory.asp
You can write small setup laucher that reads the value from the registry and passes it to the installer.

Svetlin
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now