2010-04-14 3 views
3

최종 MSI에 행이없는 CustomTable을 포함하도록 Wix를 얻으려면 어떻게해야합니까? 간단히이 테이블을 정의하면Wix에서 빈 사용자 정의 테이블을 만들려면 어떻게해야합니까?

<CustomTable Id="MyTable"> 
    <Column Id="Id" Type="string" Category="Identifier" PrimaryKey="yes"/> 
    <Column Id="Root" Type="string"/> 
    <Column Id="Key" Type="string"/> 
    <Column Id="Name" Type="string"/> 
</CustomTable> 

최종 출력에서 ​​생략됩니다.

내 DTF CustomAction은 실행 중 행을 추가 할 수 있도록 DTF CustomAction이있을 것으로 기대하고 있습니다.

아이디어가 있으십니까?

답변

7

덕분에이 blog post (DTF 사용자 지정 작업의 매우 유용한 예가 있음) 덕분에 Wix EnsureTable 요소가 발견되어 출력에 테이블이 나타나더라도 빈.

<CustomTable Id="MyTable"> 
    <Column Id="Id" Type="string" Category="Identifier" PrimaryKey="yes"/> 
    <Column Id="Root" Type="string"/> 
    <Column Id="Key" Type="string"/> 
    <Column Id="Name" Type="string"/> 
</CustomTable> 

<EnsureTable Id="MyTable"/> 
:

그래서 나는이 작업을 수행 할 필요가, 내 예를 작동하게하는

관련 문제