-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue while using from .asar package #60
Comments
package.json package:win add --ignore=node_modules/regedit/vbs --extraResource=node_modules/regedit script add function like this: let regedit = require('regedit') |
First, set the following code in "extraResources": [
{
"from": "node_modules/regedit/vbs",
"to": "regedit/vbs",
"filter": [
"**/*"
]
}
] Second, set the following code where you use let regedit = require('regedit');
regedit.setExternalVBSLocation('resources/regedit/vbs'); |
you saved my life!! thank u! |
I still cant figure this out.
Then i added With these or without I get the same error: What am I doing wrong? |
Looks like your file URL was wrong. It should be: By the way, I used election-builder to build my project |
@jeremysu0131 Input Error: Can not find script file "C:\Users***\src\vbs\regList.wsf". |
@jeremysu0131 |
If the application is manually started, it can solve the problem; If it starts automatically upon startup, the same error will be reported; After I set the enable self start option, this method failed and still reported the same error; Boot self start code:
Is there someone kind-hearted to help me |
For me, I had to add this to the end of
and then this as @jeremysu0131 said
|
thx, help me a lot |
Hi there,
im developing a Electron app,
and facing this issue :
Condition : packaged app with asar - error thrown = Input Error: Can not find script file APPD_DIR\resources\app.asar\node_modules\regedit\vbs\regList.wsf
#APP_DIR represents current project folder
The text was updated successfully, but these errors were encountered: