Get application folder of application installed

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?=

    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

    --





  • =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=

    #2
    RE: Get application folder of application installed

    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\M icrosoft\Window s\CurrentVersio n\Uninstall
    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
    try{ Life(); } catch (TooDifficultException) { throw Toys(); }



    "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
    >
    --




    >

    Comment

    • Duggi

      #3
      Re: Get application folder of application installed

      On Sep 19, 2:37 pm, Ciaran O''Donnell
      <CiaranODonn... @discussions.mi crosoft.comwrot e:
      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\M icrosoft\Window s\CurrentVersio n\Uninstall
      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://wannabedevelope r.spaces.live.c om
      >
      "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
      >
      This is the standard approach..

      -Cnu

      Comment

      Working...