regedit.putValue(tValuesToPut, archConstant, function (err) { callback(err); });
in here the username was passed undefined, the put value function hanged and never returned to the call back.
after investigating the issue deeper, it appeared that when executing the csscript.exe to edit the registry, the process never ends and will stick on the task manager (this is the root cause of the problem, and when you kill the process the callback function get fired)
Platform: Windows 10
Environment: Electron
Node Version: 6.11.2
Electron Version: 1.6.11
tValuesToPut[keyLocation].DefaultUserName = { value: username, type: 'REG_SZ' };
regedit.putValue(tValuesToPut, archConstant, function (err) { callback(err); });
in here the username was passed undefined, the put value function hanged and never returned to the call back.
after investigating the issue deeper, it appeared that when executing the csscript.exe to edit the registry, the process never ends and will stick on the task manager (this is the root cause of the problem, and when you kill the process the callback function get fired)
Platform: Windows 10 Environment: Electron Node Version: 6.11.2 Electron Version: 1.6.11