Finding the directory of my installation

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
 
H

Herfried K. Wagner [MVP]

* "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
///
 
D

David Guyer [MS]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top