在Windows Installer上安装Windows窗体应用程序。 [英] Installing a Windows Forms Application on Windows Installer.

查看:87
本文介绍了在Windows Installer上安装Windows窗体应用程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows Server 2003操作系统上安装我在vb.net中创建的Windows窗体应用程序。我不断收到此错误消息在安装应用程序之前安装程序已中断。您需要重新启动安装程序才能再次尝试。单击关闭退出。任何想法为什么?我将.Net Framework更改为4.0。谢谢。

I am trying to install a windows forms application i created in vb.net on a windows server 2003 os. I keep getting this error message "The installer was interrupted before Application could be installed. You need to restart the installer to try again.Click "Close" to exit." Any ideas as to why? I changed the .Net Framework to 4.0. Thanks.

推荐答案

请参阅我对该问题的评论,关于WiX。在我过去的答案中查看更多细节:

自定义安装项目 [< a href =http://www.codeproject.com/Answers/597510/Customplussetupplusproject#answer1target =_ blanktitle =New Window> ^ ],

< a href =http://www.codeproject.com/Answers/665435/installshield-and-Visual-Studio-2012#answer1> installshield和Visual Studio 2012 [ ^ ]。



另一个有用的想法可能是使用WiX#:

https://wixsharp.codeplex.com [ ^ ],

Wix#(WixSharp) - WiX的托管界面 [ ^ ],

Wix#(WixSharp)UI扩展 [ ^ ]。



- SA
Please see my comment to the question, about WiX. See some more detail in my past answers:
Custom setup project[^],
installshield and Visual Studio 2012[^].

Another useful idea could be using WiX#:
https://wixsharp.codeplex.com[^],
Wix# (WixSharp) - managed interface for WiX[^],
Wix# (WixSharp) UI Extensions[^].

—SA


日志文件中的相关行是:

The relevant line from your logfile is:
Machine policy value 'DisableMsi' is 1



根据文档 [ ^ ],表示:Windows Installer已禁用对于非托管应用程序,但仍为托管应用程序启用。未提升的每用户安装被阻止。允许每用户提升和每机器安装。



在这种情况下,托管表示由Active Directory部署。 />


在安装非托管应用程序之前,您需要更改该策略。


According to the documentation[^], that means: "Windows Installer is disabled for unmanaged applications but is still enabled for managed applications. Non-elevated per-user installations are blocked. Per-user elevated and per-machine installs are allowed."

In this case, "managed" means "deployed by Active Directory".

You'll need to get that policy changed before you can install a non-managed application.


这可能对您有帮助/>
https://social.msdn.microsoft.com/Forums/windows/en-US/6bead7aa-cdc5-4b3d-af0c-82f246b2a3b8/the-installer-was-应用程序可以安装中断吗?forum = winformssetup [ ^ ]
this may help you
https://social.msdn.microsoft.com/Forums/windows/en-US/6bead7aa-cdc5-4b3d-af0c-82f246b2a3b8/the-installer-was-interrupted-before-application-could-be-installed?forum=winformssetup[^]


这篇关于在Windows Installer上安装Windows窗体应用程序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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