Access SQLite DB from wix installer custom action


I have build Wix 3.7 setup project. To modify SQLite DB during installation I use custom action. But installation throws an error:

Unable to load DLL 'SQLite.Interop.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

How can I modify setup project to eliminate this problem?

asked on Stack Overflow Mar 15, 2016 by Martin Grena • edited Mar 17, 2016 by Martin Evans

1 Answer


Use a C# custom action to do the work, and include the SQLite.Interop.dll as a reference in your custom action project. Set the CopyLocal property on the DLL reference to true. This is all assuming, of course, that SQListe.Interop.dll is managed code.

answered on Stack Overflow Mar 16, 2016 by Rich Stephens

User contributions licensed under CC BY-SA 3.0