C#安装程序无法在Windows XP中启动(C# setup doesn't t start in Windows Xp)

编程入门 行业动态 更新时间:2024-10-18 14:14:15
C#安装程序无法在Windows XP中启动(C# setup doesn't t start in Windows Xp)

我已经在.NET 4.0中为我的Windows服务创建了一个Visual Studio Installer。 安装程序在我的计算机(Windows 10 64位)上工作,在Windows 7(32位)上,但它在Windows Xp 32位上不起作用,安装程序无法启动并显示带有此消息的窗口:

“安装未完成。安装程序在安装”“之前中断。再次尝试再次启动安装程序。选择关闭退出”。

已安装.NET 4.0。 没有其他细节,我可以做些什么来调试问题? 非常感谢您的关注

一些LogFile.txt:

开始操作13:19:48:安装。 13:19:48操作:DIRCA_CheckFX。 开始操作13:19:48:DIRCA_CheckFX。 行动结束13:19:48:DIRCA_CheckFX。 返回值3。 13:19:48操作:FatalErrorForm。 开始操作13:19:48:FatalErrorForm。 2898.信息VSI_MS_Sans_Serif13.0_0_0,MS Sans Serif,0 2898.信息VSI_MS_Sans_Serif16.0_1_0,MS Sans Serif,0 调试:错误 2826:对话框FatalErrorForm上的控件Line2超出对话框的边界向右延伸3个像素安装此软件包时出现意外错误。 这个包可能有问题。 错误代码是2826.参数是:FatalErrorForm,Line2,在右边 DEBUG:错误2826:控件BannerBmp FatalErrorForm对话框超出对话框的边界向右3像素安装此软件包时出现意外错误。 这个包可能有问题。 错误代码是2826.参数是:FatalErrorForm,BannerBmp,右边2898.信息VsdDefaultUIFont.524F4245_5254_5341_4C45_534153783400,MS Sans Serif,0 DEBUG:错误2826:对话框FatalErrorForm上的控件Line1超出对话框的边界向右延伸3个像素安装此软件包时出现意外错误。 这个包可能有问题。 错误代码是2826.参数是:FatalErrorForm,Line1,在右边 13:19:48操作:FatalErrorForm。 Dialog创建的Action结束了 13:19:52:FatalErrorForm。 返回值1.行动结束 13:19:52:安装 返回值3。

属性(C):VSDNETURLMSG =安装程序需要.NET Framework版本[1]。 安装.NET Framework并再次运行安装程序。 您可以从Web获取.NET Framework。 现在正在下载? 属性(C):VSDIISMSG =安装程序需要Internet Information Server 5.1或更高版本以及Windows XP或更高版本,并且无法在Windows 2000上运行。安装Internet Information Server或更新的操作系统并运行安装程序。 属性(C):= VSDUIANDADVERTISED此公告将不会安装,因为它可能不可靠。 请与系统管理员联系以在基本选项中更改软件包安装。 属性(C):VSDNETMSG =安装程序需要.NET Framework版本[1]。 安装.NET Framework并重新运行安装程序。 属性(C):VSDINVALIDURLMSG =指定的路径“[2]”不可用。 Internet Information Server可能未在运行,或者您可以将路径存在并重定向到另一台计算机。 在Internet服务管理器中检查此虚拟目录的状态。 属性(C):VSDVERSIONMSG =无法安装。 已安装该产品的最新版本

i've created a Visual Studio Installer in .NET 4.0 for my Windows Service. The installer works on my computer (Windows 10 64 bit), on Windows 7(32 bit) but it doesn't work on Windows Xp 32 bit, the installer doesn't start and appears a window with this message:

"Installation doesn't complete. Installation program interrupted before the installation of " ". Start the installation program again before trying again. Choose Close to exit".

.NET 4.0 is installed. There is no other details, what can i do for debugging the problem? Thank you very much for your attention

Some chunk of LogFile.txt:

Start operation 13:19:48: INSTALL. 13:19:48 Operation: DIRCA_CheckFX. Start operation 13:19:48: DIRCA_CheckFX. Action ended 13:19:48: DIRCA_CheckFX. Return value 3. 13:19:48 Operation: FatalErrorForm. Start operation 13:19:48: FatalErrorForm. 2898. Information VSI_MS_Sans_Serif13.0_0_0, MS Sans Serif, 0 2898. Information VSI_MS_Sans_Serif16.0_1_0, MS Sans Serif, 0 DEBUG: Error 2826: Control Line2 on dialog FatalErrorForm extends beyond the boundaries of the dialog to the right by 3 pixels There was an unexpected error installing this package. Likely problem with this package. The error code is 2826. The arguments are: FatalErrorForm, Line2, to the right DEBUG: Error 2826: Control BannerBmp FatalErrorForm on dialog extends beyond the boundaries of the dialog to the right by 3 pixels There was an unexpected error installing this package. Likely problem with this package. The error code is 2826. The arguments are: FatalErrorForm, BannerBmp, to the right 2898. Information VsdDefaultUIFont.524F4245_5254_5341_4C45_534153783400, MS Sans Serif, 0 DEBUG: Error 2826: Control Line1 on dialog FatalErrorForm extends beyond the boundaries of the dialog to the right by 3 pixels There was an unexpected error installing this package. Likely problem with this package. The error code is 2826. The arguments are: FatalErrorForm, Line1, to the right 13:19:48 Operation: FatalErrorForm. Dialog created Action ended 13:19:52: FatalErrorForm. Return Value 1. Action ended 13:19:52: INSTALL. Return value 3.

Property (C): VSDNETURLMSG = Setup requires .NET Framework version [1]. Install .NET Framework and run setup again. You can obtain the .NET Framework from the Web. Downloading now? Property (C): VSDIISMSG = The installer requires Internet Information Server 5.1 or later, and Windows XP or later, and can not run on Windows 2000. Install Internet Information Server or a more recent operating system and run the installer. Property (C): = VSDUIANDADVERTISED This announcement will not be installed because it might be unreliable. Contact your system administrator to change the package installation in the basic option. Property (C): VSDNETMSG = The installation program requires the .NET Framework version [1]. Install .NET Framework and rerun the installer. Property (C): VSDINVALIDURLMSG = The specified path '[2]' is unavailable. Internet Information Server might not be running or you can that the path exists and is redirected to another computer. Check the status of this virtual directory in Internet Services Manager. Property (C): VSDVERSIONMSG = Unable to install. The latest version of the product is already installed

.

最满意答案

DIRCA_CheckFX是VS设置自定义操作,用于检查.NET运行时,并且它失败,这就是它返回3的原因,其余部分只是抱怨对话框不完美。

您没有说明您正在使用哪个版本的VS设置,但最可能的解释是XP(不受支持)缺少自定义操作代码所需的某些依赖项(或OS API)。 或者它使用的搜索运行时不适合XP上安装的运行时。 如果你使用古老的VS设置(VS 2003或VS 2005)构建你的设置,它可能有更多的工作机会,因为它们在周围时支持XP。

DIRCA_CheckFX is the VS setup custom action that checks for the .NET Runtime, and it's failing, that's why it returns 3, and the rest of it is just whining about the dialogs not being perfect.

You didn't say which version of VS setup you're using, but the most likely explanation is that XP (which is unsupported) is missing some dependency (or OS API) that the custom action code needs. Or it's using a search for the runtime that is inappropriate for a runtime installed on XP. If you built your setup with an ancient VS setup (VS 2003 or VS 2005) it might have more chance of working because XP was supported when they were around.

更多推荐

本文发布于:2023-08-06 14:44:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1450280.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:安装程序   Windows   XP   Xp   start

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!