각 파일을 수동으로 추가하지 않아도됩니다. 대신 Paraffin을 사용하여 웹 프로젝트에서 필요한 파일을 수집 할 수 있습니다.
BeforeBuild 작업을 추가하기 위해 수동으로 Wix 프로젝트 파일을 수정하여 빌드 중에 (로컬 또는 서버에서) 자동으로 실행되도록 구성했습니다. 다음은 예제입니다. 이것을 시작점으로 사용할 수 있습니다. 에서
<Target Name="BeforeBuild">
<!-- Set the WebClient.wxs file as not read-only -->
<Exec Command="attrib -R "$(ProjectDir)WebClient.wxs"" />
<!-- Run paraffin to generate the wix component for the web client. This assumes that web project has already been packaged.
This is automatically done on the build server by setting the property 'DeployOnBuild' to true. -->
<Exec Command="paraffin -update WebClient.wxs -dir ..\RM.Web\obj\$(Platform)\$(Configuration)\Package\PackageTmp\" />
<!-- Set the WebClient.wxs file back as read-only -->
<Exec Command="attrib +R "$(ProjectDir)WebClient.wxs"" />
</Target>
읽기 wix.chm 파일 (http://wix.sourceforge.net/) 당신에게 많은 도움이됩니다 – vinay