installer doesn't copy extra resources directories during installation
See original GitHub issueHi! I have an issue with creating windows installer with electron-builder (see https://github.com/loopline-systems/electron-builder/issues/252) but electron-builder developer asked me to recreate issue here.
The problem is: I use two-package.json project layout (package.json
and app/package.json
) and extra resources folders (for example with dlls) are not copied to installation path during installer run. Extra files are copied, there is no problems with them, but extra folders are not.
Also tried to move folders with dlls into app
folder, but haven’t succeed: dlls folders are packaged into resources/app.asar
but can’t be found and loaded on electron application startup.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Copy Local Files - Can't get to work, please help - InstallAware
Hi, First of all make sure that you copy the file after the "Apply install" command. Until this point TARGETDIR will not have...
Read more >Upgrade do not copy files - InstallShield - Flexera Community
I have added one more component and file (to existing component), but install shield upgrade fails to copy the files.
Read more >Maven install not copying resources folder to target directory.
I have very straight forward maven project with two idea project modules. When I perform maven install, resources folder is not copied in...
Read more >Using Files and Folders during installation - Advanced Installer
Hello and welcome to Advanced Installer forums, The files from the "Files and Folders" page are copied on the target machine during the...
Read more >Inno Installer not creating sub-folder after installation
You can see a folder name Resources inside App directory, which should be created while installation with it's content. But right now no...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I still don’t understand how to copy (during app instal) a given file from project’s root folder to the <userData> path, so that I can access it in my javascript like: let path = electron.app.getPath(‘userData’) + ‘settings.json’
is there an instruction we need to place in ‘build’ section of package.json ? NOTE: I’m using electron-builder to build the executable for app I want to install in Windows.
Thanks a lot !
Probably a more general solution would be to customize the
template.nuspec
. Adding -for instance:…will add the folder as you expected. Putting hte
exe
folder outside theapp
folder will also avoid to have it put intoapp.asar
.To obtain that, it would be great to have the ability of using custom templates.