#Unable to set registry key and values

8 messages · Page 1 of 1 (latest)

coral rapids
#

I am building an electron app with electron builder and using regedit package to set and update the values of a user's regsitry , when I am running the electron app on my local server the application works perfectly fine . But when I am packaging the app with electron builder and creating a new release and try to install the app on my machine, I get an error 'Error: vbscript process reported unknown error code 1' and via a try-catch block I got to know that this is occuring when the system tries to set the registry. How do I solve this error in the packaged application ? Do help .

exotic island
#

Or maybe you are not mentioning the script in extraResources to make it accessable in production

coral rapids
#

In order to set extraResources I have to use setExternalVBSLocation function .But I do not find the definitions of the function in regedit package version 5.1.1 .What is the walkaround for this @exotic island ?

exotic island
coral rapids
#

Doing the same but receiving this error

TypeError: regedit.setExternalVBSLocation is not a function
#

Hey thanks for the help .It's working now. I called regedit.promisified first and then i was trying to set the location but now I first set in the vbsLocation and called promisfied later on regedit