How To Find Installation Path

Hello;
I have some additional files with my program that I want to be copied to the installation path. Know My two questions.

1- How can I find the installation path through my program.
I mean I want to know the installation path, because I want to
use it in my program.

2- How can I copy some files to the Installation directory at the time Of Installation.

It will be very good if you can answer me.

Thank you very much

[444 byte] By [m_m1234567] at [2007-12-16]
# 1
1. You can use Application.StartupPath to find out where your program resides:

Dim someFile As String = Path.Join(Application.StartupPath, "filename.txt")

2. If you create a setup project using the Setup wizard, you can choose to include the content files of your application's project. To define a file as content, select it in the solution explorer, open the properties window, and set Build Action to Content. The setup wizard also asks you to include additional files.

DanielRieck at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2
Thank You Very Much.
m_m1234567 at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic Language...