I'm developing an Electron app and using Squirrel for windows installation. I have added the MyApp.exe to PATH pointing to the location %localappdata%\MyApp\MyApp.exe
When the app is run from command line D:\Project\WorkSpace> MyApp the application launches but the working directory of the application is C:\...\AppData\Local\MyApp\app-1.0.0 is it possible to set the working directory of MyApp.exe to D:\Project\WorkSpace ? which is the actual working directory MyApp was run by the user.
I understand that any argument passed to MyApp.exe in the root app directory will be passed to MyApp.exe with in the app-version folder, but can the CWD be set by default without the user having to passing additional args.
I'm developing an Electron app and using Squirrel for windows installation. I have added the
MyApp.exetoPATHpointing to the location%localappdata%\MyApp\MyApp.exeWhen the app is run from command line
D:\Project\WorkSpace> MyAppthe application launches but the working directory of the application isC:\...\AppData\Local\MyApp\app-1.0.0is it possible to set the working directory ofMyApp.exetoD:\Project\WorkSpace? which is the actual working directoryMyAppwas run by the user.I understand that any argument passed to
MyApp.exein the root app directory will be passed toMyApp.exewith in the app-version folder, but can theCWDbe set by default without the user having to passing additional args.