0
votes

I don't know whether what I am going to ask is possible or not but I have such requirement so asked.

I am having an .NET application. I published the application using ClickOnce and kept all the published file on Apache server. Then I created an webpage on which an download link is there pointing to .application file. This working fine. :)

Now my scenario is, I am having 5 computer labs each lab will have there respective Webserver(Tomcat) on which an JAVA web application is deployed. What I have to do is I have to publish .NET application 5 times with 5 different server URLs. Like say if my First server is http://lab1srv:8050/Myapp then in publish URL will be http://lab1srv:8050/Myapp/application same for 2..3..4....(This example is just for 5 server what if I have 100+ server?)

I will be surprised if there is something in which I be able to set deployment provider dynamically or any thing else?

1
Umm... can't you just redirect everyone to lab1srv? - sampathsris
@Krumia, No, Because after installation of .NET application I am taking URL from which its get downloaded using ApplicationDeployment.CurrentDeployment.ActivationUri.Query and then that URL is get stored with application. and I cannot use same URL for all the .NET application across labs. - Amogh
That's not what I meant. From your question what I get is, you are worried about how can you deploy a clickonce application in multiple servers. I'm just telling you that you can actually deploy it in one server, and have all other server redirect to the original server, if load balancing is not an issue. - sampathsris
So you want to have different Installation Folder URL values for each deployment? - Herdo
@Krumia, Now I will explain my actual scenario, I am having 100+ physically dislocated schools each school will have 2-3 labs each so say for eg. 100 schools will have 200-300 servers on which JAVA application is deployed. Now what I want is whatever my JAVA application is deployed is necessary to open in .NET application which is (.NET application is an browser). So if the JAVA application is opened in other browser it will go to an webpage which will have download link for `.application' file which will get downloaded from its respective server only... - Amogh

1 Answers

0
votes

See the article Deploying ClickOnce Applications For Testing and Production Servers without Resigning.

Starting with the .NET Framework 3.5, you no longer have to specify a deploymentProvider in your deployment manifest in order to deploy a ClickOnce application for both online and offline usage. This supports the scenario where you need to package and sign the deployment yourself, but allow other companies to deploy the application over their networks.

If your .NET version is lower than that, there is always the Mage.exe (or even better, MageUI.exe).

Now I don't really have hands-on experience with Mage, but it is used to recreate and sign manifests. It will be a matter of creating a good batch file. After that you just have to copy the files to the servers (which can be automated as well), and then just double click the batch file.