2016-11-14 70 views
0

我使用的是最新版本的威克斯v3.10.3的同時執行以下命令:收到錯誤candle.exe:錯誤CNDL0103:系統無法找到文件「Product.wxs」類型「源」

D:\File_Transfer\11-Nov-16\internetexplorer\2000\INTERNET_EXPLORER_SRC>call "C:\Program Files (x86)\WiX Toolset v3.10\bin\candle.exe" -sw1076 -sw1072 -dDebug -d"ADX_PATH=C:\Program Files (x86)\Add-in Express\Add-in Express .NET for Internet Explorer\\" -d"DevEnvDir=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\\" -d"SolutionDir=D:\File_Transfer\11-Nov-16\internetexplorer\2000\INTERNET_EXPLORER_SRC\PMP\\" -dSolutionExt=.sln -dSolutionFileName=PMP.sln -dSolutionName=PMP -d"SolutionPath=D:\File_Transfer\11-Nov-16\internetexplorer\2000\INTERNET_EXPLORER_SRC\PMP\PMP.sln" -dConfiguration=Release -dOutDir=bin\Release\ -dPlatform=x86 -d"ProjectDir=D:\File_Transfer\11-Nov-16\internetexplorer\2000\INTERNET_EXPLORER_SRC\PMP\PMPSetup\1.0.0\\" -dProjectExt=.wixproj -d"ProjectFileName=PMPSetup(1.0.0).wixproj" -d"ProjectName=PMPSetup(1.0.0)" -d"ProjectPath=D:\File_Transfer\11-Nov-16\internetexplorer\2000\INTERNET_EXPLORER_SRC\PMP\PMPSetup\1.0.0\PMPSetup(1.0.0).wixproj" -d"TargetDir=D:\File_Transfer\11-Nov-16\internetexplorer\2000\INTERNET_EXPLORER_SRC\PMP\PMPSetup\1.0.0\bin\Release\\" -dTargetExt=.msi -d"TargetFileName=PMPSetup(1.0.0).msi" -d"TargetName=PMPSetup(1.0.0)" -d"TargetPath=D:\File_Transfer\11-Nov-16\internetexplorer\2000\INTERNET_EXPLORER_SRC\PMP\PMPSetup\1.0.0\bin\Release\PMPSetup(1.0.0).msi" -dPMP.Configuration=Release -d"PMP.FullConfiguration=Release|AnyCPU" -dPMP.Platform=AnyCPU -d"PMP.ProjectDir=D:\File_Transfer\11-Nov-16\internetexplorer\2000\INTERNET_EXPLORER_SRC\PMP\\" -dPMP.ProjectExt=.csproj -dPMP.ProjectFileName=PMP.csproj -dPMP.ProjectName=PMP -d"PMP.ProjectPath=D:\File_Transfer\11-Nov-16\internetexplorer\2000\INTERNET_EXPLORER_SRC\PMP\PMP.csproj" -d"PMP.TargetDir=D:\File_Transfer\11-Nov-16\internetexplorer\2000\INTERNET_EXPLORER_SRC\PMP\bin\Release\\" -dPMP.TargetExt=.dll -dPMP.TargetFileName=PMP.dll -dPMP.TargetName=PMP -d"PMP.TargetPath=D:\File_Transfer\11-Nov-16\internetexplorer\2000\INTERNET_EXPLORER_SRC\PMP\bin\Release\PMP.dll" -out obj\\Release\ -arch x86 -ext "C:\Program Files (x86)\WiX Toolset v3.10\bin\\WixNetFxExtension.dll" Product.wxs StandardUI.wxs 

我得到以下錯誤:

candle.exe : error CNDL0103 : The system cannot find the file 'Product.wxs' with type 'Source'. 

當我編譯使用Visual Studio,我沒有得到任何錯誤,構建成功。而通過命令提示符,我收到上述錯誤。

任何人都可以建議如何解決這個問題嗎?

+1

使用相對路徑不是絕對路徑 –

+0

我認爲這是期望Product.wxs文件在'D:\ File_Transfer \ 11-Nov-16 \ internetexplorer \ 2000 \ INTERNET_EXPLORER_SRC'中。那是哪裏? –

回答

0

從您的Product.wxs和Product.wixobj文件所在的文件夾中運行您的批處理文件。 讓我們命名您的批處理文件installer.bat, - >右鍵單擊並

  1. 蠟燭Product.wxs編輯installer.bat
  2. 光Product.wixobj
  3. @pause

將您的installer.bat文件複製到您的Product.wxs文件所在的setupproject文件夾以及其他bin和obj文件夾所在的位置。 運行installer.bat文件。 榮譽,已生成的MSI文件,你可以從安裝程序:)

謝謝

0

candle.exe似乎有麻煩解析用反斜槓結尾引用命令行參數。例如,更改此:

-d"ADX_PATH=C:\Program Files (x86)\Add-in Express\Add-in Express .NET for Internet Explorer\\" 

到:在您所提供的命令多個地方存在

-d"ADX_PATH=C:\Program Files (x86)\Add-in Express\Add-in Express .NET for Internet Explorer" 

同樣的問題。

我使用宏是這樣的:

-d"BinariesDir=$(OutputPath)" 

,我不得不改變:

-d"BinariesDir=$(OutputPath)." 

,這樣當他們在擴大,他們不會在\結束。

相關問題