Trying to include non-Electron folders in my NSIS installer distribution
See original GitHub issue-
19.45.4:
-
Windows 7:
Trying to include the following folders in my NSIS-installer distro:
C:\myelectronapp\javaprograms_1\
C:\myelectronapp\javaprograms_2\
The final result should be that these folders (and their contents) would be installed under (in) my Electron project.
My installer.nsh file is such:
!macro preInit
SetRegView 64
WriteRegExpandStr HKLM β${INSTALL_REGISTRY_KEY}β InstallLocation "C:"
WriteRegExpandStr HKCU β${INSTALL_REGISTRY_KEY}β InstallLocation "C:"
SetRegView 32
WriteRegExpandStr HKLM β${INSTALL_REGISTRY_KEY}β InstallLocation "C:"
WriteRegExpandStr HKCU β${INSTALL_REGISTRY_KEY}β InstallLocation "C:"
File /r javaprograms_1
File /r javaprograms_2
!macroend
But I get the error no files found
Being new to NSIS I suspect I am using the File
(or placing the File
) clause incorrectly.
Any assistance would be appreciated.
Issue Analytics
- State:
- Created 6 years ago
- Comments:10
Top GitHub Comments
Yes, you would need to include every file in your project by including them in your
package.json
file. Maybe this might be a better approach to organizing your project structure:Which would allow you to include your entire app folder, as such:
To include jQuery and Bootstrap, include them in your
index.html
as so:Refer here for an example
main.js
file.Edit:
Note:
devDependencies
are npm packages that are only installed locally on your computer. If you were to try and send your program to someone else, in the form of a compiled application (.exe, .dmg, etc), then those dependencies would not be available on their computer.dependencies
on the other hand, are included with your compiled application. I bring this up because Iβm taking a stab in the dark and assuming something likestring-search
would be used within your application.If this has helped resolve your issue, please report back as such and close this issue. Thank you π
Is it important that you package things into an asar archive? If not, you could always disable it: