You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to have regedit create a key in HKCU, however I constantly get undefined as the error in the callback. Prior to this I was getting alot of vbsscript unknown error code 1 messages.
My declaration for regedit is as follows: import regedit from 'regedit'; regedit.setExternalVBSLocation('resources/regedit/vbs'); Or
import regedit from 'regedit'; const vbsPath = path.join(path.dirname(remote.app.getPath('exe')), 'resources/regedit/vbs'); regedit.setExternalVBSLocation(vbsPath);
The way I use regedit is also as follows: await regedit.createKey(['HKCU\\SOFTWARE\\path_to_folder'], function(err, result) { console.log('err for create key: ', err); console.log('result: ', result); })
Or
Both cases yield the same results and i'm not sure where the issue is. Is there supposed to be files at the end of the setExternalVBSLocation path? If so please direct me to them, if not what might be the issue in this case?
I'm operating on Windows 10, Electron 12.2.3, node 14.17.0.
I've also read and implemented #60 , however still no avail
The text was updated successfully, but these errors were encountered:
I was running into the same issue. Don't know if this helps or not, but I eventually determined that it was because I was attempting to put invalid (negative) REG_DWORD values. Limiting my values to positive numbers fixed the problem. So, make sure that the values that you are attempting to put make sense.
I'm trying to have regedit create a key in HKCU, however I constantly get undefined as the error in the callback. Prior to this I was getting alot of vbsscript unknown error code 1 messages.
My declaration for regedit is as follows:
import regedit from 'regedit'; regedit.setExternalVBSLocation('resources/regedit/vbs');
Orimport regedit from 'regedit'; const vbsPath = path.join(path.dirname(remote.app.getPath('exe')), 'resources/regedit/vbs'); regedit.setExternalVBSLocation(vbsPath);
The way I use regedit is also as follows:
await regedit.createKey(['HKCU\\SOFTWARE\\path_to_folder'], function(err, result) { console.log('err for create key: ', err); console.log('result: ', result); })
Or
regedit.createKey(['HKCU\\SOFTWARE\\path_to_folder'], function(err, result) { console.log('err for create key: ', err); console.log('result: ', result); })
Both cases yield the same results and i'm not sure where the issue is. Is there supposed to be files at the end of the setExternalVBSLocation path? If so please direct me to them, if not what might be the issue in this case?
I'm operating on Windows 10, Electron 12.2.3, node 14.17.0.
I've also read and implemented #60 , however still no avail
The text was updated successfully, but these errors were encountered: