WIX错误LGHT0284 - 完全限定名称太长问题

时间:2014-05-19 16:05:31

标签: wix windows-installer

我遇到了WiX安装程序问题。我有wix3.5,现在已升级到wix3.8。我正在使用visual studio 2013.还安装了TFS系统,我已经构建了服务器等。

当我在我的wix项目上运行visual studio上的构建时,它构建得很好。但是,当我在使用wix 3.8的构建服务器上运行构建时,我收到错误.. light.exe:命令行中指定的文件名无效:

obj\Release\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer.wixproj.BindBuiltOutputsFileListen-us.txt

错误讯息:

  

指定的路径,文件名或两者都太长。完全限定的文件名必须少于260个字符,目录名必须少于248个字符。

什么是奇怪的是,如果在构建服务器上,我卸载wix3.8并安装wix3.5我不会收到此错误!它建立得很好。但是使用wix3.8它失败了。甚至更糟糕的是我有另一个wix安装程序项目具有更长的名称(由两个字符),并在构建服务器上构建良好。只是这个特定的安装程序不想工作。 完整的错误是。

C:\B\522\GCF\Deploy.V1390.Connectors\Sources\V1390\CWW.ASG.GCF.Connectors\CWW.ASG.GCF.Connectors.sln" (default target) (1) ->
"C:\B\522\GCF\Deploy.V1390.Connectors\Sources\V1390\CWW.ASG.GCF.Connectors\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer.wixproj" (default target) (46) ->
(Link target) -> 
  light.exe : error LGHT0284: Invalid file name specified on the command line: 'obj\Release\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer.wixproj.BindBuiltOutputsFileListen-us.txt'. Error message: 'The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.' [C:\B\522\GCF\Deploy.V1390.Connectors\Sources\V1390\CWW.ASG.GCF.Connectors\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer.wixproj]

    534 Warning(s)
    1 Error(s)

这是在visual studio 2013上运行构建后传递的完整命令。

C:\Program Files (x86)\WiX Toolset v3.8\bin\Light.exe 
-out C:\B\522\GCF\Deploy.V1390.Connectors\Binaries\en-us\CWW.ASG.Connectors.AgentService.RemoteInstructionService.msi 
-pdbout C:\B\522\GCF\Deploy.V1390.Connectors\Binaries\en-us\CWW.ASG.Connectors.AgentService.RemoteInstructionService.wixpdb 
-v -cultures:en-us -ext "C:\Program Files (x86)\WiX Toolset v3.8\bin\\WixUtilExtension.dll" 
-ext "C:\Program Files (x86)\WiX Toolset v3.8\bin\\WixNetFxExtension.dll" 
-ext "C:\Program Files (x86)\WiX Toolset v3.8\bin\\WixIIsExtension.dll" 
-loc ..\..\InstallersCommon\English.wxl 
-sice:ICE80 -sice:ICE30 
–contentsfile obj\Release\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer.wixproj.BindContentsFileListen-us.txt 
-outputsfile obj\Release\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer.wixproj.BindOutputsFileListen-us.txt 
-builtoutputsfile obj\Release\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer.wixproj.BindBuiltOutputsFileListen-us.txt 
-wixprojectfile C:\B\522\GCF\Deploy.V1390.Connectors\Sources\V1390\CWW.ASG.GCF.Connectors\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer\CWW.ASG.Connectors.AgentService.RemoteInstructionService.Installer.wixproj obj\Release\Product.wixobj obj\Release\ConfigUpdate.wixobj obj\Release\ProjectOutput.wixobj obj\Release\ServiceConfiguration.wixobj (TaskId:1781)

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:3)

缩短.wixproj名称的长度。 WiX MSBuild目标使用项目名称作为中间文件。这就是造成太长路径名的原因。