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?
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).
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
来源:https://stackoverflow.com/questions/281173/clickonce-appref-ms-more-than-a-link-to-application-file