Clickonce application installation location


















ActivationUri might work "A zero-length string if the TrustUrlParameters property in the deployment manifest is false, or if the user has supplied a UNC to open the deployment or has opened it locally. I didn't do anything, but files from old DataDirectory are automatically copied to new DataDirectory after deployment. There are no. NET Framework 3. The above work on servers and desktops too.

EDIT: Assembly. GetExecutingAssembly is called in main executable. This has been working for me for a ClickOnce app, as well as also working in the VS dev environment while debugging that same app. NebuSoft NebuSoft 3, 2 2 gold badges 20 20 silver badges 24 24 bronze badges. I run the app from a certain folder. It's the folder where the app is published. How do I get the path of that folder? Oh, you want the deployment URL. Sorry, I didn't get that at all. Are you trying to get it from inside the ClickOnce application, or from an external application?

Here's what I found that worked for being able to get the deployed folder location of my clickonce application and that hasn't been mentioned anywhere I saw in my searches, for my similar, specific scenario: The clickonce application is deployed to a company LAN network folder. The clickonce application is set to be available online or offline.

That is, there is no separate location for installation or updates. In my publishing options, I am having a desktop shortcut created for the clickonce application. Here is a visual of my use case: The blue boxed folders are my directory locations for each environment's application.

The solution is to look at: AppDomain. BaseDirectory when the application is being run within visual studio as I develop and System. UpdateLocation when it is executing normally. That is, when it is launched via: setup. GetParent Directory. GetParent AppDomain. GetParent path. Kent Kruckeberg Kent Kruckeberg 4 4 silver badges 5 5 bronze badges.

This is based on Windows 10 and Visual Studio BoiseBaked BoiseBaked 7 7 silver badges 15 15 bronze badges. Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. Tuesday, July 12, AM. Wednesday, July 13, AM. Yes, clickonce apps are per user, you cant make it available for all the users, new user will have to click on the published page to run or install them.

This really stinks!! ClickOnce is such a handy thing to have and use, but it really has lots of limitations! We have an environment where our users "hot desk" often. They login to XP with their network login and use our desktop app to answer phone calls.

So now, it seems that if 5 different people use this machine, XP will maintain 5 different copies of our application. That, seems silly. Also, there's no way for a user that sits down for the first time to figure out how to install the application. Is there any way around this? What I'd really LOVE to see from ClickOnce are: Ability to be available for all users in common location Ability to create a desktop icon for all users I've seen these two things over and over on here and it seems like almost common sense that this is how people would want to use this technology.

I really hope that MS considers these in their next release or future updates. I really don't know now if we can use ClickOnce. Wednesday, February 8, PM. I solved this problem by posting the location of the application on the registry.

Added a registry key with the path to the application. Hidden ProcInfo. Start This is perhaps more than you need. Tuesday, May 30, PM. Thank you for your suggestions. This is the first version of ClickOnce. We welcome all requests or suggestions to make ClickOnce better in the next release. The two points that you suggest are being considered in the next version of ClickOnce.

We are in the process of evaluating each customer's request for next release. If you need to publish a. If you have previously configured any publishing profiles, the Publish page appears.

Select New. In the Install location page, select where users will install the application from. If you selected to install from a UNC path or web site, this page allows you to specify whether the application is available offline.

When selected, this option will list the application on the users Start Menu and it allows the application to be automatically updated when a new version is published. By default, updates are available from the Install location. If you wish to have a different location for updates, you can specify that using the Update Settings link. If you do not want the application to be available offline, it will run from the install location.

If you select to support updates, the Update Location is required and must be a valid UNC path or web site. Included on this page is the ability to specify which Application Files to include in the setup, which Prerequisites packages to install, and other Options via the links at the top of the page.



0コメント

  • 1000 / 1000