nuintun/node-adodb

Error: Spawn C:\Windows\SysWOW64\cscript.exe error with PKG

Closed this issue · 1 comments

Hi, I have this error when trying to use node-adodb inside an exe file. I use pkg to generate this exe. Any help on that please ?

ok I found a solution using the same way to electron. Just add :
if (process.mainModule.filename.indexOf('snapshot') !== -1) {
// In that case we need to set the correct path to adodb.js
ADODB.PATH = './resources/adodb.js';
}

with resources a folder in the same path as the execution file.