Sandeep
Sandeep

Reputation: 5771

Local installed location of the clickonce application

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

Upvotes: 3

Views: 1388

Answers (2)

Nick
Nick

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

Botz3000
Botz3000

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

Related Questions