user10479680
user10479680

Reputation: 161

Bundle PHP7 with electron VCRUNTIME140.dll error

I'm using for the first time the npm module electron-packager. I want to bundle inside my app the compiled version of php. I've downloaded it from the official website and I've placed it inside a folder of the app named php. I've tried then to build a windows version of the application and it will be builded successfully but the included php version will not be loaded. I've tied to start the .exe manually but it will always give me an error about a missing dll: The program can't start because VCRUNTIME140.dll is missing. I've found some question here on SO where is explained why this error happen, and it's suggested to install VC14 to solve the issue. I'm testing the windows app generated on a virtual machine, Is there any way to include the VC14 setup inside the app and then when app start if this dependency is not installed, run the setup process?

Upvotes: 0

Views: 130

Answers (1)

user9741470
user9741470

Reputation:

You can use Inno Setup to make an executable that will install your electron app. Using this tool you can install any dependency you need to run the app. Take a look at this answer for more detailed info about or this question if you have an installer that want to run After/Before the setup is complete.

Upvotes: 1

Related Questions