Reputation: 5771
I need to know where the clickonce application got installed. Is there a way to find this through C#?
Upvotes: 3
Views: 1388
Reputation: 2325
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.
Upvotes: 5
Reputation: 39610
Try Assembly.GetExecutingAssembly()
and then check the Location
property of the result. This will return the path of the currently executing assembly.
Upvotes: 0