I've successfully built my electron application which appears to be working substantially fine.
I use the node module fs
to access files for use in my application, which is standard affair for Electron. This works exactly as expected in the development environment, and even when I build my app with the asar in C:\Users\myApp\
I can access the files from the built electron application.
However, when I've created an installer and placed the application @ C:\Program Files(x86)\myApp\
fs.readFileSync
which previously worked fine both in the development verson and the built version when it was present in C:\Users\myApp\
, now requires Run as Administrator Privileges to read files, else it will throw an error.
Any explanation?
Electron Version: 1.8.4 Platform: Windows 7