从Visual Studio 2010升级到Visual Studio 2013 Update 2并安装了Visual Studio安装程序项目扩展。
安装项目会生成,并且安装程序可以在Windows 7和Windows 8中运行,但是当尝试在Windows Server 2003(标准版,Service Pack 2)上运行时
它退出并显示错误1603。
微软的支持网站建议:
打包到。您会注意到错误消息,因为Windows Installer服务使用SYSTEM帐户来安装软件。
以上都不是导致错误的原因,它可以追溯到VS2010并再次构建该项目,并且安装成功。
该项目正在使用.NET 3.5 SP1框架和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正在添加自定义操作吗?
最佳答案
我有Ally的同样问题。除了继续使用2010生成MSI之外,没有记录的解决方法。 GhostCKY在我有关2010年解决方案中“DPCA.dll”文件的问题上提出了一个可能的解决方案,我尚未尝试过,但似乎很有希望。
该错误非常容易引起误解,因为这意味着DLL加载失败。 DIRCA_CHECKFX操作正在尝试加载DLL,因此它给您带来了可怕的错误。
解决此问题的“正确”方法是WiX,但显然预算发挥了作用。