ClickOnce : Setting deployment provider dynamically
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
|
show 5 more comments
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
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 usingApplicationDeployment.CurrentDeployment.ActivationUri.Queryand 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 differentInstallation Folder URLvalues 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
|
show 5 more comments
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
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
.net c#-4.0 clickonce
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 usingApplicationDeployment.CurrentDeployment.ActivationUri.Queryand 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 differentInstallation Folder URLvalues 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
|
show 5 more comments
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 usingApplicationDeployment.CurrentDeployment.ActivationUri.Queryand 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 differentInstallation Folder URLvalues 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
|
show 5 more comments
1 Answer
1
active
oldest
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
deploymentProviderin 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.
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
deploymentProviderin 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.
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
add a comment |
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
deploymentProviderin 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.
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
add a comment |
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
deploymentProviderin 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.
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
deploymentProviderin 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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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

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.Queryand 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 URLvalues 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