B
B
Boris the Animal2016-01-18 18:39:46
.NET
Boris the Animal, 2016-01-18 18:39:46

[Wix] how to copy SQL scripts to a temporary folder, then delete them after executing them?

People, tell me. how to implement it. There is a complex logic, when updating one, when installing another. That is, you need to run scripts from the batch file during installation, and when updating, read the version of the latest patch from the database and execute only the necessary scripts, so standard WIX tools are not suitable. I do through CustomAction. I don't understand how this is done at all. I created binaries, how can I use them?
Muddy theme this WIX, it's just tough. Who came up with this...

<Fragment>
    <Binary Id="CreateDbBatFile"
            SourceFile="$(var.DemoDbScriptsFolder)\$(var.SqlBatFileName)" />
    <Binary Id="CreateDbSqlScriptPart1"
            SourceFile="$(var.DemoDbScriptsFolder)\$(var.SqlCreatePart1FileName)" />
    <Binary Id="CreateDbSqlScriptPart2"
            SourceFile="$(var.DemoDbScriptsFolder)\$(var.SqlCreatePart2FileName)" />
  </Fragment>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
asArtem, 2016-02-04
@asArtem

not use WIX but use WixSharp and CustomActions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question