How to get another application's install path?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeff Yang

    How to get another application's install path?

    I have two applications(A and B),and I install the two applications
    seperatly.Now I want to get B's install path in A,How can I do that?Thanks.


  • Jeff Yang

    #2
    Re: How to get another application's install path?

    I think the question can also be described as the follows:"in a deplyment
    project of visual studio.net,how can I get the install path that user has
    inputed "?


    Comment

    • Jeff Yang

      #3
      Re: How to get another application's install path?

      I have found the answer:In the deploying project,one can use property
      [TARGETDIR] to get the target path that user has selected.so we can store
      the value in a registy key.


      Comment

      • David Guyer [MS]

        #4
        Re: How to get another application's install path?

        I may have just answered this on another thread, but in case you are
        someone else entirely :-)...

        Q: Installing to a subdirectory of an already installed product.
        A:
        1. Product 1 is installed and has a file named MyFile.txt.
        2. You use ORCA (from the Windows Installer SDK) to view the File table,
        and find the row that represents MyFile.txt.
        3. You get the value of the Component_ column and then open the Component
        Table
        4. In the Component Table you find the row that has the Component_ value in
        the Component column, and get the ComponentID. Copy this value into
        clipboard. Close ORCA
        5. In your setup project, open the Launch Conditions Editor and add a
        Windows Installer Component Search. For the ComponentID property of the new
        search, paste the ComponentID.
        6. Copy the Property property. It should be something like COMPONENTEXISTS 1
        7. Open the File System Editor and select the Application Folder
        8. Edit the DefaultLocation property to be somethig like
        [COMPONETNEXISTS 1]MySubFolder (since the path in COMPONENTEXISTS 1 includes
        a trailing \)

        Note: After step 6 above, you might want to add a Condition to the Launch
        Conditions Editor to check if the component was found, and to block install
        and show a message if it wasnt. The condition would be COMPONENTEXISTS 1
        (which means, it's okay to run the installer if COMPONENTEXISTS 1 is not
        empty).


        ---
        David Guyer - VBQA Deployment Testing
        This posting is provided "AS IS" with no warranties, and confers no rights.
        --------------------[color=blue]
        >From: "Jeff Yang" <littlewarm@163 .com>
        >References: <#jhUH6opDHA.22 16@TK2MSFTNGP12 .phx.gbl>
        >Subject: Re: How to get another application's install path?
        >Date: Sun, 9 Nov 2003 16:30:49 +0800
        >Lines: 5
        >X-Priority: 3
        >X-MSMail-Priority: Normal
        >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
        >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
        >Message-ID: <uIn3XvppDHA.14 08@TK2MSFTNGP11 .phx.gbl>
        >Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
        >NNTP-Posting-Host: 61.145.130.42
        >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
        >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1977 44
        >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
        >
        >I have found the answer:In the deploying project,one can use property
        >[TARGETDIR] to get the target path that user has selected.so we can store
        >the value in a registy key.
        >
        >
        >[/color]

        Comment

        Working...