C# 3.5 Setup Project

  • Thread starter Thread starter Will
  • Start date Start date
W

Will

All,

I am currently creating a Visual Studio 2008 Setup Project using C#. I
am successfully running some custom actions and need to add another
based on the current directory the application is running in. So far I
have tried:

Directory.GetCurrentDirectory()
Environment.CurrentDirectory

Nothing in the Environment.GetEnvironmentVariables Dictionary helps me
either.

No matter how I try to get the current directory, it always ends up
being c:\windows\system32. This is the case no matter where I run this
application from.

If I run the application from c:\TEMP I expect the current directory to
be c:\TEMP.

Can anyone shed some light on this issue?

Thanks.
 

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

Back
Top