What is the path to the installed ClickOnce application?

I wrote the "Hallo world" type of Windows Forms in C # to check for authentication problems. I will periodically launch a possible application from the server, so I want to be sure that I can get to the resources and fix it before I complete the entire application.

So, in Visual Studio 2010, I choose Publish ....

It says “Where?” And I specify the folder in the shared file system.

It says, “How your users will be installed,” and I say “URL” or something like that.

It says “Where,” and I give it the URL in the same shared file system, in a different folder.

Everything is right with the world ....

Now I install it on my server by double-clicking "setup" in the shared file system where I published the application.

Now I found a shortcut in my start menu, everything is fine.

Now I want to configure it so that the SQL Server agent runs it periodically (and checks authentication ...), so what URL do I give it to execute? I tried everything, but not so good. I don’t understand the publishing method at all.

How can I fix this problem?

+1
source share
1 answer

Look at the Start menu shortcut for your installed application and you will see that it points to the ClickOnce Application Link file (.appref-ms) deeply immersed in your user folder. You can run the application by executing this file.

Example:

Process.Start(@"C:\Users\Igby\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Microsoft\MyClickOnceApp.appref-ms");

SQL Server, .

+3

All Articles