2014-10-20 67 views

回答

3

把許可證文件保存爲PayloadBootstrapperApplicationRef就像WiX bundle does

<BootstrapperApplicationRef Id='ManagedBootstrapperApplicationHost'> 
    <Payload Name='BootstrapperCore.config' SourceFile='WixBA.BootstrapperCore.config' /> 

    <Payload SourceFile='WixBA.dll' /> 
    <Payload SourceFile='..\..\..\License.txt' /> 
</BootstrapperApplicationRef> 
+0

但是,如何將它加載到Bootstrapper UI項目的富文本控件中? – sky 2014-10-21 00:35:13

+2

您可以查看[WixBA](https://github.com/wixtoolset/wix3/blob/develop/src/Setup/WixBA/InstallationViewModel.cs)以查看它如何訪問其許可證文件(LaunchLicense方法)。然後,您將閱讀文件內容,並使用標準C#方法將C#文本控件的文本設置爲內容。 – 2014-10-21 03:24:24

+0

我在'BootstrapperApplicationRef'中加載了EULA文件,按照[this](http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Re-Managed-Bootstrapper-Access-Payload-file-從-WPF的代碼td7586373.html)。 – sky 2014-12-08 04:28:27

1

我不知道,如果你所要求的,但according to this tutorial,您可以在WixStandardBootstrapperApplication例如從教程設置EULA(許可證):

<Bundle> 
    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense"> 
    <bal:WixStandardBootstrapperApplication 
     LicenseFile="path\to\license.rtf" <!-- HERE --> 
     LogoFile="path\to\customlogo.png"/> 
    </BootstrapperApplicationRef> 
    <Chain> 
    ... 
    </Chain> 
</Bundle> 
相關問題