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.
--------------------
From: "Jeff Yang" <li********@163 .com>
References: <#j************ **@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: <uI************ **@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.