3

I need to know where the clickonce application got installed. Is there a way to find this through C#?

Sandeep
  • 5,581
  • 10
  • 42
  • 62

2 Answers2

5

For reference, the physical files end up in this directory: C:\Documents and Settings\userprofile\Local Settings\Apps in Win XP and C:\Users\\AppData\Local\Apps for Windows 7.

You can also read more about this in this question.

Community
  • 1
  • 1
Nick
  • 2,285
  • 2
  • 14
  • 26
0

Try Assembly.GetExecutingAssembly() and then check the Location property of the result. This will return the path of the currently executing assembly.

Botz3000
  • 39,020
  • 8
  • 103
  • 127