更新 XAP 而不更改 app_id :sllauncher.exe
我在多台计算机上通过浏览器安装了 Silverlight 应用程序。现在我想更新这些的 xap。我不想手动更新每台计算机。
我知道我可以通过 sllauncher.exe 来完成此操作,但问题是我的应用程序正在更改其 app_id。我需要保存它,有什么办法吗?
其次,我们需要使用/install参数指定本地文件。如果我指定新 xap 的 web url 似乎不起作用,这正常吗?
谢谢
I have a Silverlight application installed Out-Of-Browser on multiple computers. Now I'd want to update the xap on those. I dont want to manually update every computer.
I know I can do it through sllauncher.exe but the problem is that my application is changing its app_id. I need to preserve it, is there any way to do that?
secondly, we need to specify a local file with the /install parameter. It does not seems to work if I specify the web url to my new xap, is that normal?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您不需要使用 sllauncher 来更新您的 xap。您需要做的就是调用 CheckAndDownloadUpdateAsync。它将检查 xap 的新版本,如果有可用,它将下载并为您更新。
You don't need to use sllauncher to update your xap. All you need to do is call CheckAndDownloadUpdateAsync. It will check for a new version of the xap and if one is available it will download and update it for you.
对于
Silverlight OOB
应用程序,最好(必须)使用CheckAndDownloadUpdateAsync
(更新),它将检查并下载是否有新版本的 XAP。您可以在每次用户启动应用程序时或关闭应用程序之前或定期检查此项。更新时不会创建新的app_id
。您可以使用
sllauncher.exe
安装 XAP(不会更新)并创建新的 app_id。/install:XAP 文件
可能是本地文件或共享文件。它不能是网址。您可以在
/origin:Web Url
处提供网址。当您想要更新应用程序时,这将很有用。For
Silverlight OOB
applications its always better (must) to useCheckAndDownloadUpdateAsync
(to update) which will check and download if there is a new version of the XAP. You can check this everytime the user starts the application or before closing the application, or at regular intervals. No newapp_id
is created as its updating.You can use
sllauncher.exe
to install the XAP (it doesn't update) creating a new app_id. And the/install:XAP file
might be a local file or a shared file. It cannot be a web url.You can give web url at
/origin:Web Url
. This will be useful when you want to update your application.我意识到我可以通过直接替换本地驱动器中的xap文件来做到这一点:
“C:\ Users \ myuser \ AppData \ Local \ Microsoft \ Silverlight \ OutOfBrowser \ 1111111111.appName \ appName.xap”
但我不确定这样做不会弄乱任何事情。但它似乎工作得很好。
I realized I can do it just by replacing the xap file directly in the local drive here :
"C:\Users\myuser\AppData\Local\Microsoft\Silverlight\OutOfBrowser\1111111111.appName\appName.xap"
But I am not sure it doesn't mess up anything by doing it that way. But it seems to work fine though.