I am working on a Windows desktop application. It is an Electron app and uses electron-builder to create the application package. NSIS configurations of the electron-builder are used to create the installer of the application.
I have programmed the installer to add keys to the registry, so that application could be launched from the Windows context menu when right clicked on the background of a folder.
But when the application is launched from the Windows context menu JavaScript error occurs.JavaScript Error image
However when the path of the installation directory is written in the environmental variables, application can be launched from the Windows context menu successfully (without any errors).
I would like to launch my Electron-app from the Windows context menu without writing to the environmental variables. Is there a way to do that ? Thanks in advance.