4

Okay, I have been looking all over to solve this problem before I actually broke down and decided to finally ask for my psecific problem. I am using ClickOnce installation and when I use the setup.exe to install nothing runs, not even on my personal computer that I know has all of the proper libraries and such. I'm not sure what I am doing wrong so it is difficult to explain the problem.

I have included dotNetFramework4.0 client x86 x64 , xna redistributable 4.0 and windows installer 3.1 along with my game and I have it set to install all of that with setup , also I have it set to download prereqs from same location as application. I've tried it on three separate computers , one that does not have XNA or VS C# installed and the same problem occurs.

Here is the problem , after I install the game nothing runs, I try clicking on the ClickOnce application file (the one with my game's icon image) and again nothing happens. The thing that really bugs me is that there isn't any errors or crashes or anything , it's almost like clicking on the desktop screen. (I looked at the properties of the "shortcut" that was installed with the game and the file size of the shortcut is like 300 bytes. Isn't that really small? I was thinking maybe there is a problem with a startup executable? I'm not sure though.)

I've tried tweaking some stuff in the Publish section of my project , such as un-checking the box that says "use .deploy extension files" (I don't know why, I've been grasping at straws here) I've been looking into some other installers such as NSIS but I don't know how to compile a list of files to include in other installers and I feel like that won't solve the problem anyway because I've gotten ClickOnce to work with me before.

On one computer there was an error report that said something about 'deployment and application do not have matching security zones.'

Game.application resulted in exception. Following failure messages were detected: + Deployment and application do not have matching security zones.

It's getting late so if I need to provide more information let me know.

4

1 回答 1

2

ClickOnce 可能是一个善变的事情。有时我遇到的错误只能通过重新创建整个 Windows 用户配置文件来解决。因为 ClickOnce 有很多不同的选项,所以我很难诊断出您的确切问题,所以我只能提供我曾经通过 ClickOnce 成功安装的选项。

  • 发布文件夹:本地文件夹
  • 安装文件夹 URL:空白
  • 安装方式:离线
  • 申请文件
    • 确保游戏文件的发布状态设置为包含(自动)
    • 确保 XNA 库的发布状态设置为先决条件(自动)
  • 单击先决条件
    • Microsoft .NET Framework 4 客户端配置文件
    • Microsoft XNA 框架可再发行组件 4.0
    • 视窗安装程序 3.1
  • 不检查更新
  • 选项下的所有其他默认设置(发布商/套件名称不应影响任何内容)
  • 指定版本号
  • 立即发布

通过发布位置提供的 setup.exe 安装游戏。我总是分发每个发布的文件。但是,如果您不希望分发历史记录,您可以清理“应用程序文件”文件夹中的旧版本。

您可以仔细检查“应用程序文件”文件夹以查看您的版本是否正确发布(查看已部署的文件并查看它们是否与您的项目内容匹配)。

于 2012-09-04T17:19:20.060 回答