部署.net 4.0 wpf应用程序问题

发布于 2024-12-06 14:28:07 字数 1836 浏览 1 评论 0原文

我一直在开发一个计划分发的应用程序。由于某种原因,我无法将其安装在其他计算机上。首先让我向您展示我的部署设置,也许我在那里做错了什么(我保留了所有默认值)。

部署设置:

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

我得到以下文件:

在此处输入图像描述

到目前为止,一切看起来都很棒!让我向您展示当我尝试在多台计算机上安装此应用程序时会发生什么:

计算机 1:(运行带有 Service Pack 1 的 Windows 7)

应用程序只需几秒钟即可安装,并且运行良好。 我可以将其卸载为: 在此处输入图像描述

该应用程序运行良好!

计算机 2:(运行带服务包的 Windows Vista)

它未安装:

在此处输入图像描述

当我单击安装时收到以下错误:

在此处输入图像描述

如您所见,我无法将其安装在那台计算机上。我尝试卸载它然后再次安装,但遇到了同样的问题。

计算机 3:(运行带 Service Pack 2 的 Windows XP)

当我运行 setup.exe 文件时,需要一段时间才能下载并安装所需的任何要求。安装我认为的内容花了 1 个小时:

在此处输入图像描述

当该部分最后完成时,我得到了错误提示:“您没有足够的磁盘空间”,而我的 C 驱动器上有 50GB 的可用磁盘空间。

所以它不适用于该计算机以太网。

计算机 4:(带有 Service Pack 2 的 Windows XP)

我收到以下错误:

在此处输入图像描述

。 。 。 。 。

为什么部署应用程序如此困难?该应用程序在所有安装了 Visual Studio 的计算机上运行良好。我应该尝试降级到 .Net 3.0 还是 .Net 2.0?


编辑

这是否是因为我可能无法发布应用程序?我免费获得了 Visual Studio,因为我的大学给了我它。我知道有学生版本可以尝试,而且它们每六个月就会过期。我使用 Visual Studio Ultimate Edition 大约一年了,每次启动 Visual Studio 时,它都不会像在我的笔记本电脑上那样说仅用于评估目的。我的启动画面实际上显示为:

在此处输入图像描述

I been working on a application that I am planing on distributing. For some reason I am not able to install it on other computers. first let me show you my deployment settings maybe I am doing something wrong in there (I left all the defaults).

Deployment settings:

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

after doing that I get the following files:

enter image description here

So far everything looks great! Let me show you what happens when I try installing this app on several computers:

.

Computer 1: (Running windows 7 with Service Pack 1)

application installs in a matter of seconds and it works fine.
I am able to uninstall it as:
enter image description here

THE APPLICATION WORKS GREAT!

.

Computer 2: (Running windows vista with service pack)

IT DOES NOT INSTALL:

enter image description here

when I click on install I get the following error:

enter image description here

so as you can see I was not able to install it on that machine. I tried uninstalling it then installing it again and I get the same problem.

.

.

computer 3: (running windows xp with service pack 2)

when I ran the setup.exe file it took a while to download and install whatever requirements it needed. It took 1 hour to install what I believe was the:

enter image description here

and when that part finished at the end I got an error saying: "you do not have enough disk space" and I have 50GB of free disk space on my c drive.

SO IT DID NOT WORK WITH THIS COMPUTER EATHER.

.

.

Computer 4: (windows xp with service pack 2)

I get the following error:

enter image description here

.
.
.
.
.

.

why is it so difficult to deploy an application. this application works great in all the computers that have visual studio installed. Should I try to downgrade to .Net 3.0 or maybe .Net 2.0?


Edit

Could this be because I might not be able to publish applications? I got visual studio for free because my university gave it to me. I know there are student versions where you can try and also that they expire every six months. I been using visual studio ultimate edition for about 1 year know and every time I launch visual studio it does NOT say for evaluation purposes only like on my laptop. My splash screen actually comes out as:

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

赠我空喜 2024-12-13 14:28:07

您在先决条件中选择了“Microsoft .NET Framework 4 Client Profile”,但这就是您的应用程序的目标吗?检查您的应用程序属性 ->应用程序选项卡。通常,WPF 应用程序将以完整的 .Net 框架为目标。

You selected in your prerequisites the "Microsoft .NET Framework 4 Client Profile", but is that what your application is targeting? Check your application properties -> Application tab. Usually a WPF application will target the full .Net framework.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文