473,614 Members | 2,428 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.
Nov 15 '05 #1
3 9462
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 "?
Nov 15 '05 #2
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.
Nov 15 '05 #3
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.


Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2046
by: Jarek Zgoda | last post by:
What you consider a "best way to deploy linux python app"? I don't want to install library modules into user's site-packages, so distutils is no help. Currently, I change sys.path (adding directory where library modules are stored) and I ask users to install application into /opt hierarchy, but I don't think it's optimal. -- Jarek Zgoda http://jpa.berlios.de/
2
2330
by: Andrew Wiles | last post by:
Hi I have an application which (along with many other things) uses the COM interop classes for "Microsoft Decision Support Objects" (DSO). I have done no more than included the DSO components as a reference. Prior to including these I have made heavy use of the ADO classes (yes I know that ADOMD.Net has recently surfaced :-) For this application I have built an install package in Visual Studio .Net 2003.
4
7069
by: bob lambert | last post by:
Help I am trying to deploy to another pc a vb.net std 2002 windows form application. I am confused. I created a project - windows form I built form, compiled and debugged. I created a deployment project (myproj installer) I added my windows app to the installer under myproj installer properties, I set bootstrapper
6
1929
by: Ben Finney | last post by:
Howdy all, I'm improving an existing application that's partly written using Python and the standard library. Many of the improvements I want to make can be done by using third-party free software. The immediate customer for this application is happy to install Python on their machine, but I'd like to remove the hassle of asking them to continually install new versions of great third-party Python software that isn't packaged for their...
2
4555
by: Ronald | last post by:
I just started with dotnetnuke, and with a wrong login (wrong password on a clean install i can crash the application pool from IIS. (when i login with the right username/password information the site works fine, i can do anything it is supposed to do) I have the following setup: -Windows 2003 x64 (fully patched, clean install) -Dotnetframework 2.0.50727 -Dotnetnuke 4.3.1
3
2608
by: pooba53 | last post by:
I have a VB .NET 2003 application that communicates with an Access db. I am deploying the application using the Wizard that creates an install package and it IS properly grabbing the Access db and putting it in the Program Files directory along with the application executable, no problem. The problem is this... The OleDbConnection knows of the database in an absolute location (i.e. C:\Documents and Settings\ApplicationDB\data.mdb
0
4214
by: md | last post by:
Hi all, I have a simple VB.net application, which I create and publish using VB 2005 Express. When I install it on the target computer, this application needs to be run both from the Start menu and from a command prompt. While the Start menu is simple enough, the command prompt is a problem as the VB publisher can only install the executable in the insanely stupid location such as:
2
1521
by: sms1973 | last post by:
Hello, I have built an application web site using ASP.NET 2003 and MSSQL database server. I now need to distribute the entire application to customers on a CD to run the web application completely from their local personal computers. In other words, they will not need to access the Internet to run the application. I know I can use the redistributable MSSQL EMMSDE for the database part, but my problem is that I want users to run the site...
2
4301
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi anyone, I have installed an Windows Forms Application (developed using VS 2005). My application appears in Control Panel -Add/Remove Programs. The path can be default path or if the user changes will be another path.
0
8179
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8124
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8621
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8427
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6087
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4049
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4119
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1712
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1421
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.