【发布时间】:2014-09-22 06:10:05
【问题描述】:
已从 Visual Studio 2010 升级到 Visual Studio 2013 Update 2 并安装了 Visual Studio 安装程序项目扩展。 Setup up 项目构建,安装程序在 Windows 7 和 Windows 8 中工作,但尝试在 Windows Server 2003 上运行它时(标准版,Service Pack 2) 它以错误 1603 退出。
微软支持网站建议:
- 您尝试安装 Windows Installer 程序包的文件夹已加密。
- 包含您尝试安装 Windows Installer 程序包的文件夹的驱动器作为替代驱动器访问。
- SYSTEM 帐户对您尝试安装 Windows Installer 的文件夹没有完全控制权限 包到。您注意到错误消息是因为 Windows Installer 服务使用 SYSTEM 帐户安装软件。
以上都不是导致错误的原因,已经回到 VS2010 并再次构建项目,它已安装没有问题。
该项目使用 .NET 3.5 SP1 Framework 和 Windows Installer 3.1。找不到 Windows Installer 组件,我不得不复制它。
来自:C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages
到:C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\Bootstrapper\Packages
有没有人遇到过类似的问题?
更新 1 谢谢@PhilDW
我已经完成了安装并创建了一个日志文件,我已经复制了我认为相关的部分,但可以下载完整的日志here。
Action 11:55:50: DIRCA_CheckFX.
Action start 11:55:50: DIRCA_CheckFX.
MSI (c) (64:24) [11:55:50:139]: Note: 1: 2235 2: 3: ExtendedType 4: SELECT `Action`,`Type`,`Source`,`Target`, NULL, `ExtendedType` FROM `CustomAction` WHERE `Action` = 'DIRCA_CheckFX'
MSI (c) (64:B0) [11:55:50:170]: Invoking remote custom action. DLL: C:\DOCUME~1\ADMINI~1.000\LOCALS~1\Temp\1\MSI1D4.tmp, Entrypoint: CheckFX
MSI (c) (64:D4) [11:55:50:170]: Cloaking enabled.
MSI (c) (64:D4) [11:55:50:170]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (64:D4) [11:55:50:170]: Connected to service for CA interface.
Action ended 11:55:50: DIRCA_CheckFX. Return value 3.
MSI (c) (64:24) [11:55:50:217]: Doing action: FatalErrorForm
Action 11:55:50: FatalErrorForm.
Action start 11:55:50: FatalErrorForm.
MSI (c) (64:24) [11:55:50:217]: Note: 1: 2235 2: 3: ExtendedType 4: SELECT `Action`,`Type`,`Source`,`Target`, NULL, `ExtendedType` FROM `CustomAction` WHERE `Action` = 'FatalErrorForm'
MSI (c) (64:4C) [11:55:50:233]: Note: 1: 2262 2: Error 3: -2147287038
Info 2898. For VSI_MS_Sans_Serif13.0_0_0 textstyle, the system created a 'MS Sans Serif' font, in 0 character set, of 13 pixels height.
MSI (c) (64:4C) [11:55:50:233]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826: Control Line1 on dialog FatalErrorForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FatalErrorForm, Line1, to the right
然后我在这里找到了以下question。 Visual Studio 正在添加自定义操作,这是否存在?
【问题讨论】:
-
1603 是一般错误,最常见的原因是自定义操作崩溃。如果您有任何自定义操作,我会仔细查看它们,特别是如果它们具有可能不在目标系统上的依赖项。执行安装并使用 msiexec /I
/l*v 创建日志以查看失败的位置。 -
我遇到了同样的问题,并按照 GhostCKY 在 SO question stackoverflow.com/questions/23978677/… 上发布的步骤解决了这个问题。我还在 Win7 上进行了测试,没有任何问题。
标签: .net-3.5 windows-installer failed-installation