Accessing System/User Enviroment Variables in Visual C# and Installing applications

Hi!

I am trying to save data to the current users Application Data folder. Any idea how we can go ahead and determine the path of the directory? Do we need to acces some enviroment variables of the user to do this?

Further in the Visual C# 2005 Express edition, the publish tool makes a setup that installs the application into the Application Data folder of the installer. Would not this limit the use of the application only to the installer? cant i make it to install into a general place like program files and let all users that logon to the system use the application.

[594 byte] By [coolgeek1998] at [2007-12-23]
# 1

To access the application data folder, take a look at this:

string thePath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);

As for publishing im afraid I don't know as I've never used the publish feature

ahmedilyas at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 2

Hi thanks,

It solved my accessing enviromental problem and through that many others as well..... but I am still stuck with the installation problem.... I was looking into some third party installation programs.. know any free installation programs I can use for my express application?

coolgeek1998

coolgeek1998 at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...