3

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

Sandeep
  • 5,211
  • 10
  • 41
  • 61

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,235
  • 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
  • 38,118
  • 8
  • 102
  • 126