已经从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添加的,有没有什么方法可以解决这个问题?