Using FileInstall() doesn't work, as I don't want it to save a copy of the actual database somewhere, or any other file either.
But I took a quick look at resources.au3, but I'm not sure it can actually do what I want.
I added this into the header:
#AutoIt3Wrapper_run_after=ResHacker.exe -add %out%, %out%, database.db, rcdata, BIN_DB, 0
And this into the start of the code:
$BIN_DB = _ResourceGet("BIN_DB", $RT_RCDATA)
_SQLite_Open ($BIN_DB)
And then compiled the program, but when I run the exe it doesn't seem to be able to actually do any searches in the DB, but it doesn't complain either, so atleast SQLite thinks it can open a file, just that it's empty or something.
And yes, I got ResHacker fixed etc, so it's not something like that.