Saving a Text File in the path where VB application is running and installed

Hi All....

I am working in VB.NET Application and SQL Server 2005 . I want to save a text file either in a specified path or in the application directory where it is installed. On executing the application by using solution file it get created in debug folder but when publish the setup file and after i install the application the file is not getting created. Please give me a code for this