2014-08-27 4 views
2

MyWixUI_InstallDir.wxs 사용 :설정 속성 값 WIX에게

내 사용자 정의 대화 상자가 있습니다

 <Control Id="DBServer" Type="Text" X="20" Y="60" Width="290" Height="13" 
     NoPrefix="yes" Text="Name of the SQL Server to deploy the DTA script" /> 
     <Control Id="DBSText" Type="Edit" X="20" Y="72" Width="290" Height="18" 
     Property="DTAServer" /> 

Product.wxs : 나는 '값'을 설정하는 방법

  <util:XmlFile Id="AppConfigSetConnStr" Action="setValue" Permanent="yes" File="[INSTALLLOCATION]TestService.exe.config"    
      ElementPath="/configuration/startup/supportedRuntime[\[]@version='v4.0'[\]]" Name="version" 
     Value="----" /> 

을 사용자가 UI를 통해 입력 한 것과 같거나 Product.wxs.Gindly의 'DTAServer'속성에 어떻게 액세스 할 수 있습니까?

답변

1

글로벌 속성은 (수도의 모든 알파벳) 예컨대

<Property Id="ABC"/> 

이 Product.wxs 및 MyWixUI_InstallDir.wxs에서 동일한 속성을 사용을 선언했다.

관련 문제