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?

2 Answers 2

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).

2
  • 4
    Any idea how "system knows how to find the copy of the program on the local disk"?
    – EricLaw
    Commented Nov 2, 2012 at 15:03
  • 3
    @EricLaw 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 discussion
    – edymtt
    Commented Dec 1, 2012 at 13:51
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.