2013-06-10 3 views
2

누구나 WOW Setup.AS를 사용하여 콤보 상자에 값을 채우는 방법을 알고 있습니다. 지난 주 동안 노력했습니다.이 MSI.Below를 실행할 때 콤보 상자가 나타나지 않습니다. 내가하는 일을 제공 해줘. 제발 도와주세요.WIX Combobox 채우기 값

<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> 
    <MediaTemplate /> 

    <Feature Id="ProductFeature" Title="SetupProjectComboTest" Level="1"> 
     <ComponentGroupRef Id="ProductComponents" /> 
    </Feature> 

<UI> 
    <UIRef Id="WixUI_FeatureTree" /> 
    <ComboBox Property="WIX_VERSIONS"> 
    <ListItem Value="Windows Installer XML 3.0" /> 
    <ListItem Value="Windows Installer XML 3.5" /> 
    <ListItem Value="Windows Installer XML 3.6" /> 
    </ComboBox> 
    <Dialog Id="MyCustomDlg" Width="500" Height="260"> 
    <Control Id="ComboBoxMain" Type="ComboBox" X="10" Y="60" Width="300" Height="17" Property="WIX_VERSIONS" /> 
    <Control Id="ButtonMain" Type="PushButton" X="320" Y="60" Width="40" Height="17" Text="Show"> 
     <Publish Property="COMBOVALUEFORMATTED" Order="1" Value="You've chosen the [WIX_VERSIONS] version of the toolset" /> 
    </Control> 
    <Control Id="LabelMain" Type="Text" X="10" Y="80" Width="360" Height="17" Property="COMBOVALUEFORMATTED" Text="[COMBOVALUEFORMATTED]" /> 

    </Dialog> 
</UI> 

<Fragment> 
    <Directory Id="TARGETDIR" Name="SourceDir"> 
     <Directory Id="ProgramFilesFolder"> 
      <Directory Id="INSTALLFOLDER" Name="SetupProjectComboTest" /> 
     </Directory> 
    </Directory> 
</Fragment> 

<Fragment> 
    <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> 
     <!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. --> 
     <!-- <Component Id="ProductComponent"> --> 
      <!-- TODO: Insert files, registry keys, and other resources here. --> 
     <!-- </Component> --> 
    </ComponentGroup> 
</Fragment> 

답변

3

그냥이 솔루션을 시도해보십시오 경우,

<Control Id="ComboBoxMain" Type="ComboBox" X="10" Y="60" Width="300" Height="17" Property="WIX_VERSIONS" > 
    <ComboBox Property="WIX_VERSIONS"> 
     <ListItem Value="Windows Installer XML 3.0" /> 
     <ListItem Value="Windows Installer XML 3.5" /> 
     <ListItem Value="Windows Installer XML 3.6" /> 
    </ComboBox> 
</Control> 
+0

당신은 알고 계십니까이 사용자 지정 작업에서 값을 채우는 옵션입니까? 서버에서 옵션을 가져 오려고합니다. –

+0

사용자 정의 항목 로더를위한 솔루션 일 수 있습니다. http://stackoverflow.com/questions/14455542/wix-load-items-into-combobox –