ClickOnce .appref-ms more than a link to .application file?
Asked Answered
I

2

13

I have a ClickOnce environment like this:

\\Fileserver\ClickOnceApps\App1.application

C:\Documents and Settings\user\Start Menu\Programs\publisher\app1.appref-ms

My understanding is the .apppref-ms file is a glorified link to the app.application file. Does it do anything else?

Impracticable answered 11/11, 2008 at 15:20 Comment(0)
S
23

If you open the appref-ms file in a text editor you'll see it contains the Url for the application, culture, processor architecture and key used to sign the application, so yes, it's just a link.

The difference between those "Application Reference" files and shortcuts (.lnk) is that the application reference points to the original application Url and not the location of the exe on disk, when you run the appref-ms file the system knows how to find the copy of the program on the local disk and run it from there without accessing the Url (this is not accurate and depends on settings in the ClickOnce manifest, but its a close approximation).

Simulacrum answered 11/11, 2008 at 15:35 Comment(2)
Any idea how "system knows how to find the copy of the program on the local disk"?Pulchi
@Pulchi in this discussion on Windows Forms forums there is an explanation by a Microsoft employee on how it could work/it could be implemented -- it seems that the ClickOnce implementation is not documented anywhere. You can also find interesting this linked discussionEcstasy
C
0

If you open it and then open task manager then right click the task, open file location and it'll take you (most times) directly to the actual .exe

Cicala answered 25/10, 2017 at 18:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.