Installation path of deployment app

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Grumpy Aero Guy

    #1

    Installation path of deployment app

    I have a project with a deployment project.

    All works GREAT !!!

    Is there a system variable (maybe via the dot net framework I'm assuming)
    that stores the installation path of the app, assuming the end-user changes
    the default path that I set up in the deployment project?

    Thank you in advance!

    --


    Frank Bachman
    (Grumpy Aero Guy)



  • Bob Powell [MVP]

    #2
    Re: Installation path of deployment app

    For many things you can use [TARGET] as a path to the installation
    directory. What are you trying to do?

    --
    Bob Powell [MVP]
    Visual C#, System.Drawing

    Ramuseco Limited .NET consulting


    Find great Windows Forms articles in Windows Forms Tips and Tricks


    Answer those GDI+ questions with the GDI+ FAQ


    All new articles provide code in C# and VB.NET.
    Subscribe to the RSS feeds provided and never miss a new article.





    "Grumpy Aero Guy" <fbachman@beer_ me.com> wrote in message
    news:eMT0$F%23s FHA.236@TK2MSFT NGP11.phx.gbl.. .[color=blue]
    >I have a project with a deployment project.
    >
    > All works GREAT !!!
    >
    > Is there a system variable (maybe via the dot net framework I'm assuming)
    > that stores the installation path of the app, assuming the end-user
    > changes the default path that I set up in the deployment project?
    >
    > Thank you in advance!
    >
    > --
    >
    >
    > Frank Bachman
    > (Grumpy Aero Guy)
    >
    >
    >[/color]


    Comment

    • Cor Ligthert [MVP]

      #3
      Re: Installation path of deployment app

      Grumpy,

      Maybe it is easier to get that path in your application using

      application.sta rtuppath
      http://msdn.microsoft.com/library/de...ppathtopic.asp

      I hope this helps,

      Cor


      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: Installation path of deployment app

        "Grumpy Aero Guy" <fbachman@beer_ me.com> schrieb:[color=blue]
        >I have a project with a deployment project.
        >
        > All works GREAT !!!
        >
        > Is there a system variable (maybe via the dot net framework I'm assuming)
        > that stores the installation path of the app, assuming the end-user
        > changes the default path that I set up in the deployment project?[/color]

        Either add a reference to "System.Windows .Forms.dll" and import the
        'System.Windows .Forms' namespace in order to use 'Application.St artupPath'
        or use the code below:

        \\\
        Imports System.IO
        Imports System.Reflecti on
        ..
        ..
        ..
        Private Function ApplicationPath () As String
        Return _
        Path.GetDirecto ryName([Assembly].GetEntryAssemb ly().Location)
        End Function
        ///

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://classicvb.org/petition/>

        Comment

        • Grumpy Aero Guy

          #5
          Re: Installation path of deployment app

          Fantastic.... just what i needed.

          I have a few link lables here and there that do a process.start on some
          reference files (pdf) in the main app folder.

          Just wanted to give the app a way to find them, as long as they're in the
          install directory --- either the default, or wherever the user installed the
          thing.

          THANKS TO ALL. Now I at least know where to start looking

          --


          Frank Bachman
          (Grumpy Aero Guy)


          "Grumpy Aero Guy" <fbachman@beer_ me.com> wrote in message
          news:eMT0$F%23s FHA.236@TK2MSFT NGP11.phx.gbl.. .[color=blue]
          >I have a project with a deployment project.
          >
          > All works GREAT !!!
          >
          > Is there a system variable (maybe via the dot net framework I'm assuming)
          > that stores the installation path of the app, assuming the end-user
          > changes the default path that I set up in the deployment project?
          >
          > Thank you in advance!
          >
          > --
          >
          >
          > Frank Bachman
          > (Grumpy Aero Guy)
          >
          >
          >[/color]


          Comment

          • Grumpy Aero Guy

            #6
            Re: Installation path of deployment app

            It helps !! ... I'll be playing....

            --


            Frank Bachman
            (Grumpy Aero Guy)


            "Cor Ligthert [MVP]" <notmyfirstname @planet.nl> wrote in message
            news:uy$CjiDtFH A.3480@TK2MSFTN GP10.phx.gbl...[color=blue]
            > Grumpy,
            >
            > Maybe it is easier to get that path in your application using
            >
            > application.sta rtuppath
            > http://msdn.microsoft.com/library/de...ppathtopic.asp
            >
            > I hope this helps,
            >
            > Cor
            >[/color]


            Comment

            Working...