question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

installer doesn't copy extra resources directories during installation

See original GitHub issue

Hi! 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:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
octavian-sandrucommented, Aug 22, 2018

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 !

3reactions
marcopiraccinicommented, Mar 19, 2016

Probably a more general solution would be to customize the template.nuspec. Adding -for instance:

    <file src="exe/**" target="lib/net45" />

…will add the folder as you expected. Putting hte exe folder outside the app folder will also avoid to have it put into app.asar.

To obtain that, it would be great to have the ability of using custom templates.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found