Visual Studio 2013 更新2,安装程序项目扩展

5

已经从Visual Studio 2010升级到Visual Studio 2013 Update 2并安装了Visual Studio安装程序项目扩展。

安装程序项目在Windows 7和Windows 8上可以构建和安装,但是在尝试在Windows Server 2003(标准版,服务包2)上运行时,会出现错误1603。

Microsoft的支持网站建议:

  • 您要将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

我已经创建了一个日志文件并进行了安装,我复制了我认为与此相关的部分,但是完整的日志可以在此处下载。

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

我随后在这里找到了以下问题。自定义操作是由Visual Studio添加的,有没有什么方法可以解决这个问题?


1603是一种通用错误,最常见的原因是自定义操作崩溃。如果您有任何自定义操作,请仔细查看它们,特别是如果它们具有可能不在目标系统上的依赖项。使用msiexec /I <path to your msi> /l*v <path to a text log file>创建一个日志文件来安装并查看失败的位置。 - PhilDW
3
我曾经遇到过同样的问题,通过按照 GhostCKY 在Stack Overflow问题https://dev59.com/XGAg5IYBdhLWcg3wG3wK中发布的步骤解决了该问题。我还在Win7上进行了测试,没有发现任何问题。 - JimSTAT
1个回答

3
我也遇到了同样的问题,Ally。除了继续使用2010来构建MSI之外,没有记录的解决方法。GhostCKY在我的关于“DPCA.dll”文件的问题中提供了一个潜在的解决方案,我还没有尝试,但似乎很有希望。
错误提示非常误导人,因为它意味着DLL加载失败。DIRCA_CHECKFX操作正在尝试加载DLL,因此会给出一个可怕的错误。
正确的解决方法是使用WiX,但显然预算成为一个问题。

1
谢谢,我尝试复制dll文件过去了,它起作用了。对于其他遇到同样问题的人,解决方案在这里:https://dev59.com/XGAg5IYBdhLWcg3wG3wK - Ally Murray

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接