Program Unable to Load DLL 'SQLite.Interop.dll' after WiX Installation

前端 未结 1 1177
既然无缘
既然无缘 2020-12-21 07:32

I use WiX to bundle a MSI installation file. After the installation, I execute the program but get the following error.

Unable to load DLL \'SQLite.In

相关标签:
1条回答
  • 2020-12-21 08:28

    In the Product.wxs file, add these:

    <Directory Id="INSTALLFOLDER" Name="MyApp">
        <!-- ... -->
        <Directory Id="x86_dir" Name="x86" />
        <Directory Id="x64_dir" Name="x64" />
    </Directory>
    


    And add these:

    <Fragment>
        <ComponentGroup Id="x86_files" Directory="x86">
            <Component Id="SQLite_x86.Interop.dll" Guid="{GUID}">
                <File Id="SQLite_x86.Interop.dll" Name="SQLite.Interop.dll" Source="$(var.MyApp_TargetDir)x86\SQLite.Interop.dll" />
            </Component>
        </ComponentGroup>
    </Fragment>
    <Fragment>
        <ComponentGroup Id="x64_files" Directory="x64">
            <Component Id="SQLite_x64.Interop.dll" Guid="{GUID}">
                <File Id="SQLite_x64.Interop.dll" Name="SQLite.Interop.dll" Source="$(var.MyApp_TargetDir)x64\SQLite.Interop.dll" />
            </Component>
        </ComponentGroup>
    </Fragment>
    
    0 讨论(0)
提交回复
热议问题