ClickOnce : Setting deployment provider dynamically












0















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?










share|improve this question

























  • Umm... can't you just redirect everyone to lab1srv?

    – sampathsris
    Jul 23 '14 at 15:08











  • @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
    Jul 23 '14 at 15:13













  • 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
    Jul 23 '14 at 15:16











  • So you want to have different Installation Folder URL values for each deployment?

    – Herdo
    Jul 23 '14 at 15:19











  • @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
    Jul 23 '14 at 15:23
















0















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?










share|improve this question

























  • Umm... can't you just redirect everyone to lab1srv?

    – sampathsris
    Jul 23 '14 at 15:08











  • @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
    Jul 23 '14 at 15:13













  • 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
    Jul 23 '14 at 15:16











  • So you want to have different Installation Folder URL values for each deployment?

    – Herdo
    Jul 23 '14 at 15:19











  • @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
    Jul 23 '14 at 15:23














0












0








0








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?










share|improve this question
















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?







.net c#-4.0 clickonce






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 '18 at 3:30









Cœur

18.4k9109148




18.4k9109148










asked Jul 23 '14 at 14:45









AmoghAmogh

2,63773072




2,63773072













  • Umm... can't you just redirect everyone to lab1srv?

    – sampathsris
    Jul 23 '14 at 15:08











  • @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
    Jul 23 '14 at 15:13













  • 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
    Jul 23 '14 at 15:16











  • So you want to have different Installation Folder URL values for each deployment?

    – Herdo
    Jul 23 '14 at 15:19











  • @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
    Jul 23 '14 at 15:23



















  • Umm... can't you just redirect everyone to lab1srv?

    – sampathsris
    Jul 23 '14 at 15:08











  • @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
    Jul 23 '14 at 15:13













  • 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
    Jul 23 '14 at 15:16











  • So you want to have different Installation Folder URL values for each deployment?

    – Herdo
    Jul 23 '14 at 15:19











  • @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
    Jul 23 '14 at 15:23

















Umm... can't you just redirect everyone to lab1srv?

– sampathsris
Jul 23 '14 at 15:08





Umm... can't you just redirect everyone to lab1srv?

– sampathsris
Jul 23 '14 at 15:08













@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
Jul 23 '14 at 15:13







@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
Jul 23 '14 at 15:13















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
Jul 23 '14 at 15:16





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
Jul 23 '14 at 15:16













So you want to have different Installation Folder URL values for each deployment?

– Herdo
Jul 23 '14 at 15:19





So you want to have different Installation Folder URL values for each deployment?

– Herdo
Jul 23 '14 at 15:19













@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
Jul 23 '14 at 15:23





@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
Jul 23 '14 at 15:23












1 Answer
1






active

oldest

votes


















0














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.






share|improve this answer
























  • Cant we set deployment provider URL as "../application/app.application" ? :(

    – Amogh
    Jul 23 '14 at 16:08











  • @Amogh You could. But good luck with that: The path can be local (c:foldernamepublishfolder), relative (publish), or a fully qualified location (\servernamefoldername or http://servername/foldername). All HTTP/HTTPS locations must be created with US-ASCII characters. Unicode characters are not supported. If the installation path is set, the customization files must be in that location for users to install the customization. The location should be set only if you know the final deployment location.

    – Herdo
    Jul 23 '14 at 16:34











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f24913639%2fclickonce-setting-deployment-provider-dynamically%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














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.






share|improve this answer
























  • Cant we set deployment provider URL as "../application/app.application" ? :(

    – Amogh
    Jul 23 '14 at 16:08











  • @Amogh You could. But good luck with that: The path can be local (c:foldernamepublishfolder), relative (publish), or a fully qualified location (\servernamefoldername or http://servername/foldername). All HTTP/HTTPS locations must be created with US-ASCII characters. Unicode characters are not supported. If the installation path is set, the customization files must be in that location for users to install the customization. The location should be set only if you know the final deployment location.

    – Herdo
    Jul 23 '14 at 16:34
















0














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.






share|improve this answer
























  • Cant we set deployment provider URL as "../application/app.application" ? :(

    – Amogh
    Jul 23 '14 at 16:08











  • @Amogh You could. But good luck with that: The path can be local (c:foldernamepublishfolder), relative (publish), or a fully qualified location (\servernamefoldername or http://servername/foldername). All HTTP/HTTPS locations must be created with US-ASCII characters. Unicode characters are not supported. If the installation path is set, the customization files must be in that location for users to install the customization. The location should be set only if you know the final deployment location.

    – Herdo
    Jul 23 '14 at 16:34














0












0








0







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.






share|improve this answer













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.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jul 23 '14 at 15:54









sampathsrissampathsris

13.2k84175




13.2k84175













  • Cant we set deployment provider URL as "../application/app.application" ? :(

    – Amogh
    Jul 23 '14 at 16:08











  • @Amogh You could. But good luck with that: The path can be local (c:foldernamepublishfolder), relative (publish), or a fully qualified location (\servernamefoldername or http://servername/foldername). All HTTP/HTTPS locations must be created with US-ASCII characters. Unicode characters are not supported. If the installation path is set, the customization files must be in that location for users to install the customization. The location should be set only if you know the final deployment location.

    – Herdo
    Jul 23 '14 at 16:34



















  • Cant we set deployment provider URL as "../application/app.application" ? :(

    – Amogh
    Jul 23 '14 at 16:08











  • @Amogh You could. But good luck with that: The path can be local (c:foldernamepublishfolder), relative (publish), or a fully qualified location (\servernamefoldername or http://servername/foldername). All HTTP/HTTPS locations must be created with US-ASCII characters. Unicode characters are not supported. If the installation path is set, the customization files must be in that location for users to install the customization. The location should be set only if you know the final deployment location.

    – Herdo
    Jul 23 '14 at 16:34

















Cant we set deployment provider URL as "../application/app.application" ? :(

– Amogh
Jul 23 '14 at 16:08





Cant we set deployment provider URL as "../application/app.application" ? :(

– Amogh
Jul 23 '14 at 16:08













@Amogh You could. But good luck with that: The path can be local (c:foldernamepublishfolder), relative (publish), or a fully qualified location (\servernamefoldername or http://servername/foldername). All HTTP/HTTPS locations must be created with US-ASCII characters. Unicode characters are not supported. If the installation path is set, the customization files must be in that location for users to install the customization. The location should be set only if you know the final deployment location.

– Herdo
Jul 23 '14 at 16:34





@Amogh You could. But good luck with that: The path can be local (c:foldernamepublishfolder), relative (publish), or a fully qualified location (\servernamefoldername or http://servername/foldername). All HTTP/HTTPS locations must be created with US-ASCII characters. Unicode characters are not supported. If the installation path is set, the customization files must be in that location for users to install the customization. The location should be set only if you know the final deployment location.

– Herdo
Jul 23 '14 at 16:34




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f24913639%2fclickonce-setting-deployment-provider-dynamically%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

The term 'EXEC' is not recognized as the name of a cmdlet Powershell

NPM command prompt closes immediately [closed]

Error binding properties and functions in emscripten