By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,990 Members | 1,741 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,990 IT Pros & Developers. It's quick & easy.

Get application folder of application installed

P: n/a


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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.