[WinFirst] Fix still using require with new Reg

This commit is contained in:
Ducko 2022-04-30 12:13:49 +01:00
parent 535214b25a
commit ec4c8921ae

View file

@ -1,10 +1,8 @@
const fs = require('fs');
const { join, resolve, basename } = require('path');
const reg = (a, c) => require('child_process').execFile('reg.exe', a, c);
const Constants = require('./Constants');
const reg = require('./utils/registry');
const reg = (a, c) => require('child_process').execFile('reg.exe', a, c);
const exec = process.execPath;
const app = resolve(exec, '..');