使用 sllauncher 安装 Silverlight 4 应用程序不起作用
我正在尝试使用 sllauncher 离线安装 XAP 文件,但它不起作用。
更新 我删除了应用程序的所有现有引用和文件夹,现在它似乎可以正常工作。我将保留这一点,因为它有一些关于如何解决这个问题的好线索。 C:\Documents and Settings\Rod\Local Settings\Application Data\Microsoft\Silverlight\OutOfBrowser\index
我用以下内容制作了一个bat文件:
"%ProgramFiles%\Microsoft Silverlight\sllauncher.exe" /install:"c:\TourneyManager.xap" /origin:"http://www.pokerdiy.com/Portals/6/TourneyManager/TourneyManager.xap" /shortcut:desktop+startmenu /overwrite
我已将xap文件放在与sllauncher相同的文件夹中,bat文件,现在尝试我的 c: root 但没有喜悦。它只是运行,没有错误消息,事件日志中也没有任何内容。它肯定正在执行 sllauncher,因为我可以更改参数并生成错误。
如果我从网站 OOB 安装应用程序,然后运行卸载程序,它会卸载它:
"%ProgramFiles%\Microsoft Silverlight\sllauncher.exe" /uninstall /origin:"http://www.pokerdiy.com/Portals/6/TourneyManager/TourneyManager.xap"
我的研究:从网站安装它后,快捷方式(可以正常 OOB)指向此:
"C:\Program Files\Microsoft Silverlight\sllauncher.exe" 1851630633.www.pokerdiy.com
然后我查找
C:\Documents and Settings\Rod\Local Settings\Application Data\Microsoft\Silverlight\OutOfBrowser\index
并有一个文件www.pokerdiy.com 指向应用程序 ID 和完全限定的来源:
1851630633 http://www.pokerdiy.com/Portals/6/TourneyManager/TourneyManager.xap
当我离线运行 bat 文件时,它会创建一个 applicationID 并将正确的来源添加到索引文件中,但是,它创建的文件夹中没有 xap 文件,并且没有运行它的快捷方式。我认为由于某种原因找不到 xap 文件。
XAP 处于发布模式还是调试模式有关系吗?我不会这么想...
请问有什么建议吗?
I'm trying to install a XAP file offline using sllauncher but it is not working.
UPDATE I erased all the existing references and folders for my app and now it seems to be working. I will leave this up as it has some good clues on how to solve this.
C:\Documents and Settings\Rod\Local Settings\Application Data\Microsoft\Silverlight\OutOfBrowser\index
I made a bat file with the following:
"%ProgramFiles%\Microsoft Silverlight\sllauncher.exe" /install:"c:\TourneyManager.xap" /origin:"http://www.pokerdiy.com/Portals/6/TourneyManager/TourneyManager.xap" /shortcut:desktop+startmenu /overwrite
I have put the xap file in the same folder as sllauncher, the bat file and now trying my c: root but no joy. It just runs with no error message and nothing in the event log. It is definitely executing sllauncher as I can change a param and generate an error.
If I install the app from the website OOB then run the uninstaller it does uninstall it:
"%ProgramFiles%\Microsoft Silverlight\sllauncher.exe" /uninstall /origin:"http://www.pokerdiy.com/Portals/6/TourneyManager/TourneyManager.xap"
My research: After I install it from the website, the shortcut (which works fine OOB) points at this:
"C:\Program Files\Microsoft Silverlight\sllauncher.exe" 1851630633.www.pokerdiy.com
I then looked up
C:\Documents and Settings\Rod\Local Settings\Application Data\Microsoft\Silverlight\OutOfBrowser\index
and there is a file www.pokerdiy.com which points to the Application ID and fully qualified origin:
1851630633 http://www.pokerdiy.com/Portals/6/TourneyManager/TourneyManager.xap
When I run my bat file offline it creates an applicationID and adds the correct origin to the index file, however, there is no xap file in the folder it creates and no shortcut to run it. I assume it is not finding the xap file for some reason.
Does it matter if the XAP is in release or debug mode? I would not have thought so...
Any suggestions please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我设法让这个工作 - 我不完全确定如何,但我首先删除了此处现有的参考安装文件夹:
它似乎有点不稳定(在某一时刻安装工作,但应用程序只显示了一个白屏) - 但开始查看上面索引文件夹中的文件,看看您的 xap 是否被复制到正确的文件夹。
我将保留这一点,因为它有一些关于如何解决这个问题的好线索。
I managed to get this working - I am not entirely sure how but I started by erasing the existing references installed folders here:
It seems a little flaky (at one point the install worked but the app just showed a white screen) - but start by looking at the file in the index folder above to see if your xap is being copied to the correct folder.
I will leave this up as it has some good clues on how to solve this.