Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing folder information about clickonce application

Tags:

c#

clickonce

Here's the problem:

I have two applications. One of them is a clickonce application that I do not have access to, and the other one is a c# program I'm designing. I need a way to track down the application folder where the app is installed by either the .appref-ms file in the start menu, or the token id/name found from within that file.

Is this possible? Is there a way to query the clickonce store for a list of applications and where they are installed to? Everything I have found refers to opening the process list and going to the process image location, but this is not possible if the program is not running.

like image 449
ugh StackExchange Avatar asked May 07 '15 15:05

ugh StackExchange


People also ask

Where are ClickOnce applications stored?

Every ClickOnce application installed on a local computer has a data directory, stored in the user's Documents and Settings folder. Any file included in a ClickOnce application and marked as a "data" file is copied to this directory when an application is installed.

How do I manage updates for a ClickOnce application?

With a project selected in Solution Explorer, on the Project menu, click Properties. Click the Publish tab. Click the Updates button to open the Application Updates dialog box. In the Application Updates dialog box, make sure that the The application should check for updates check box is cleared.

How do I open a ClickOnce application?

From the user's point of view, ClickOnce applications can be launched in two ways: From a web page on the Internet, intranet or local computer. The web page includes a link to the application deployment manifest (. application), a click on which installs and launches the application on the user's computer.

Where is the ClickOnce cache?

A ClickOnce cache is a family of hidden directories under the Local Settings directory of the current user's Documents and Settings folder. This cache holds all the application's files, including the assemblies, configuration files, application and user settings, and data directory.


1 Answers

ClickOnce store data in Windows registry key: HKEY_CURRENT_USER\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment

Registry key with application list: HKEY_CURRENT_USER\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment\SideBySide\2.0\StateManager\Applications

like image 151
Serj-Tm Avatar answered Nov 10 '22 22:11

Serj-Tm