使用bootstraper setup.exe的ClickOnce需要更改URL而不进行任何构建 [英] ClickOnce with bootstraper setup.exe need to change URL without any build

查看:76
本文介绍了使用bootstraper setup.exe的ClickOnce需要更改URL而不进行任何构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在构建需要成为具有第三方先决条件的ClickOnce模块的应用程序集,因此我们构建应用程序并将其发布到部署服务器。一切都在这里 - ClickOnce工作正常。

We are building the set of applications that need to be a ClickOnce module with 3rd party prerequisities, so we build an application and publish it to a deployment server. Everything is right here - ClickOnce work fine.

然后我们需要将其作为"系统"出售。对很多客户。他们需要将此模块放在他们自己的部署服务器上,以便将其用户作为ClickOnce应用程序的源。
我们制作了管理应用程序,用于更改apllication和instalation清单,基于mage.exe,客户端管理员可以更改清单,ather应用程序配置数据以满足他的需求,并使用他的证书进行签名。它更改了manifest .application文件中的codebase标记。

Then we need to sell it as a "System" to many clients. They need to put this module on their own deployment server to serve their users as a source of ClickOnce application.
We made admin app for changing apllication and instalation manifest, based on mage.exe, that client administrator can change manifests, ather app configuration data for his needs and sign them with his certificate. It changes codebase tag in manifest .application file.

但是我们无法更改bootstraper setup.exe,并且bootstraper总是在oryginaly发布的URL中查找清单(.application文件),而不是更改。代码库标记中的应用程序文件 - 最终由客户端管理员更改。
为什么?如何更改?

BUT we cant change bootstraper setup.exe and the bootstraper always looks for manifest (.application file) in oryginaly published URL, NOT in changed .application file in codebase tag - eventualy changed by client admin. 
WHY ? How to change it?

这是应用程序清单的一部分:
< 部署 安装 =" true " mapFileExtensions =" true ">
< 订阅 > < 更新 > < beforeApplicationStartup /> < font color ="#0000ff">< / 更新 > < / 订阅 >
< <字体color ="#800000"> deploymentProvider codebase = http://demo.sigma.optivum.pl/VULCAN.WSSigma.Wykonania.Offline.Local/VULCAN.WSSigma.Wykonania.application />
< / 部署 >

This is the part of application manifest:
<deployment install="true" mapFileExtensions="true">
<subscription><update><beforeApplicationStartup /></update></subscription>
<deploymentProvider codebase=http://demo.sigma.optivum.pl/VULCAN.WSSigma.Wykonania.Offline.Local/VULCAN.WSSigma.Wykonania.application />
</deployment>

这是日志的一部分( http:// rafal ...是错误的代码库URL !!):
启动应用程序。< br> 运行命令'http://rafal/VULCAN.WSSigma.Wykonania.Online/VULCAN.WSSigma.Wykonania.application'带参数''
ShellExecuteEx失败,错误代码为1155
错误:尝试安装时发生以下错误
'http://rafal/VULCAN.WSSigma.Wykonania.Online/VULCAN.WSSigma.Wykonania.application':
"Zokreślonymplikiemnie skojarzono dla tejoperacjiżadnejaplikacji。 "

This is the part of log (http://rafal... is wrong codebase URL !!) :
Launching Application.
Running command 'http://rafal/VULCAN.WSSigma.Wykonania.Online/VULCAN.WSSigma.Wykonania.application' with arguments ''
ShellExecuteEx failed with error code 1155
Error: The following error occurred attempting to install
'http://rafal/VULCAN.WSSigma.Wykonania.Online/VULCAN.WSSigma.Wykonania.application':
"Z określonym plikiem nie skojarzono dla tej operacji żadnej aplikacji. "

Thx in提前。
Bilberry :)
Pawel Borkowski,VULCAN波兰
pawelb@nospam_vulcan.pl
www.vulcan.pl

Thx in advance.
Bilberry :)
Pawel Borkowski, VULCAN Poland
pawelb@nospam_vulcan.pl
www.vulcan.pl

推荐答案

您好,

您可以使用以下命令更新引导程序URL:
setup.exe / url = http: // myserverhostname /

其中setup.exe是你的bootstrapper .exe

我概述了我刚创建的帖子中的一些步骤我的博客描述了我的ClickOnce体验。

http://proactivelogic.com/blog/index.php/2006/09/30/packaging- a-clickonce-server-deployment /

希望有所帮助,
Jon

Hi,

You can update the bootstrapper url by using the command:
setup.exe /url= http://myserverhostname/

where setup.exe is your bootstrapper .exe

I outlined some of the steps in a post I just created on my blog that describes my ClickOnce experiences.

http://proactivelogic.com/blog/index.php/2006/09/30/packaging-a-clickonce-server-deployment/

Hope that helps,
Jon


这篇关于使用bootstraper setup.exe的ClickOnce需要更改URL而不进行任何构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆