Windows Installer - using it as an Add-in installer

Posted on 2004-10-24
Last Modified: 2010-04-24
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!

Question by:autigent
    1 Comment
    LVL 6

    Accepted Solution

    Check this in MSDN:
    You can write small setup laucher that reads the value from the registry and passes it to the installer.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: Foundations of Front-End Development

    Jump-start a lucrative career in front-end web development, with zero previous coding experience required. This course covers the basic programming concepts and languages required for creating engaging websites from scratch.

    The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
    In Easy String Encryption Using CryptoAPI in C++ ( I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    845 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now