473,320 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Get application folder of application installed



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.

now, I have another application .net and I want to get the application
folder (full path) of my Windows Forms Application. Only, I know the name of
my application (product name like it appears in Control panel -Add/Remove
Programs)

Any suggestions, please? Sample code source very helpful

Thanks in advanced, greetings

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.com/churrosoft
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft

Sep 19 '08 #1
2 4288
You can write a particular registry key when you install the first program or
if that is done already, you can access the path from the registry key that
add/remove programs uses. If you know the application global id then it will
be the name of a subkey of
HKLM\Software\Microsoft\Windows\CurrentVersion\Uni nstall
If you dont know that then you will need to look at the DisplayName item in
each of the subkeys in turn to find the one you are looking for, then you can
read the InstallLocation item which will have the install folder.
--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"Alhambra Eidos Desarrollo" wrote:
>

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.

now, I have another application .net and I want to get the application
folder (full path) of my Windows Forms Application. Only, I know the name of
my application (product name like it appears in Control panel -Add/Remove
Programs)

Any suggestions, please? Sample code source very helpful

Thanks in advanced, greetings

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.com/churrosoft
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft
Sep 19 '08 #2
On Sep 19, 2:37*pm, Ciaran O''Donnell
<CiaranODonn...@discussions.microsoft.comwrote:
You can write a particular registry key when you install the first program or
if that is done already, you can access the path from the registry key that
add/remove programs uses. If you know the application global id then it will
be the name of a subkey of
HKLM\Software\Microsoft\Windows\CurrentVersion\Uni nstall
If you dont know that then you will need to look at the DisplayName item in
each of the subkeys in turn to find the one you are looking for, then youcan
read the InstallLocation item which will have the install folder.

--
Ciaran O''Donnellhttp://wannabedeveloper.spaces.live.com

"Alhambra Eidos Desarrollo" wrote:
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.
now, I have another application .net and I want to get the application
folder (full path) of my Windows Forms Application. Only, I know the name of
my application (product name like it appears in Control panel -Add/Remove
Programs)
Any suggestions, please? Sample code source very helpful
Thanks in advanced, greetings
--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.com/churrosoft
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft
This is the standard approach..

-Cnu
Sep 19 '08 #3

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

Similar topics

0
by: deploying visual basic .net application | last post by:
Hi There, I'm trying to create a setup for a Windows application to install my application I developed using Visual basic .net. I'm using Visual Studio .net Professional. When I use the Set up...
10
by: Jeremy Ames | last post by:
I have created a web application that uses a custom control and a web service on my local system. I have gotten all of the bugs worked out on my local system and now it is time to move it to the...
21
by: Chris | last post by:
I'm trying to get an existing VS.NET project up on my Win2003 server and I get the following error (on the actual website page): "It is an error to use a section registered as...
3
by: Johnny | last post by:
Hi, I have created an ASP.NET application (let's call it FooBar) with VS.NET on my local machine, residing in http://localhost/FooBar. Deploying it to another folder on my machine works well...
2
by: nologin | last post by:
Hello. I have an application which has the use of another assembly. How can i make a deployment project, which will be copy this assembly not to application folder but system folder - depends on...
13
by: Lee Newson | last post by:
Hi, I have just written my first application using VB.NET. The app works fine when i am running it within .NET for debugging purposes, however when i try to run the app from the .exe file that...
6
by: David | last post by:
I would like to change our web site to show the products using a catalog style of presentation. MS have a free template called "ecommercesdk". Though I don't need the cart side, the database...
2
by: salad | last post by:
Hi. I have some questions regarding the distribution and installation of an application. My current application is written in A97. I figure its time the application is upgraded to A2003 to...
2
by: TimR | last post by:
I am trying to create my first Web application in VS2005 and am pulling my hair out!!!! I cannot seem to get aspx pages to work from a locally installed copy of IIS. I am getting a...
1
by: =?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?= | last post by:
For in-house tools, the approach of writing to the program files folder is fine. Here are a few ways that it can be problematic if the code goes out of your team, such as to a customer: 1....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.