Sequencing components in a feature

I want to replace the file that was installed by my installer. In the following code, the OneCoreFiles component must first install the files (which works), and the ConfigCopyFile component must replace this configuration file.

But the code does not work as expected. First, the "ConfigCopyFile" component is launched, and then "OnecoreFiles". I want it to work in a different way.

I am still learning WIX and thought that the components in the Feature elements execute in the order in which they are declared.

Code snippet:

<Component Id="ConfigCopyFile" Guid="{98E61055-5A84-4003-90D1-7A67677D7465}">
  <Condition>CONFIGFILEEXISTS</Condition>
  <CopyFile Id="ConfigFileId" SourceProperty="CONFIGFILEEXISTS" DestinationProperty  ="INSTALLDIR"/>
</Component>

<Feature Id="ProductFeature" Title="OneCore Features" Level="1">
        <ComponentRef Id="LogEntries" />
        <ComponentGroupRef Id="OneCoreFiles" />
        <ComponentRef Id="AppDBConfiguration" />
        <ComponentRef Id="SqlServerConfiguration" />
        <ComponentRef Id="OracleConfiguration" />
        <ComponentRef Id="IISConfiguration" />
        <ComponentRef Id="ConfigCopyFile" />
    </Feature>

This should be pretty easy to solve. I'm missing something. Please advice.

+3
source share
1 answer

WiX . . Windows, . , . , .

Windows , (, , ), .

InstallExecute Sequence

InstallExecuteSequence

+4

Source: https://habr.com/ru/post/1781260/


All Articles