Finding the directory of my installation

  • Thread starter Thread starter JH
  • Start date Start date
J

JH

I want to do a custom setup using some files after installing my
application?
How do I get the directory where my application is installed? Can some one
please help me with the code

New to VB here
 
* "JH said:
How do I get the directory where my application is installed? Can some one
please help me with the code

Inside VB.NET?

\\\
Imports System.IO
Imports System.Reflection
..
..
..
Private Function ApplicationPath() As String
Return _
Path.GetDirectoryName([Assembly].GetExecutingAssembly().Location)
End Function
///
 
If you use the Windows Installer Object Model (a COM component), you can
find out the installation location of one of your components using the
ComponentID of the file.
 
Back
Top