2017-03-03 5 views
1

에 var.publishDir를 삽입하지 않습니다. 나는 WebSiteContent.wxs하지만 불행히도 var.publishDir는 "C:\는"내가 들어있는 .wxs 파일로 끝날 것으로 평가받을 잘못된 파일 경로윅스 내가</p> <p>한 걸음 내가 모든 프로그램 파일이있는 디렉토리를 수확 포함 내 applcation에 대한 설치 프로그램을 만들 윅스 도구를 사용하고 WXS 파일

을 얻을

heat dir "C:\myDir" -dr INSTALLFOLDER -ke -srd -cg WebComponents -var var.publishDir -gg -out WebSiteContent.wxs 

: 다음 명령은 내가 파일을 수확하는 데 사용 .wxs 파일 내부

, 나는 경로는 다음과 같이 것으로 기대 대신

$(var.publishDir).\relative\path\to\the\program\file 

, 그게 내가 무엇을 얻을 :

C:\relative\path\to\the\program\file 

답변

2

Wixproj에서 DefineConstants를 정의하여 전달해야합니다.

<PropertyGroup> 
    <DefineConstants> 
     $(DefineConstants);publishDir=$(publishDir) 
    </DefineConstants> 
</PropertyGroup> 
관련 문제