I have created a Node-Webkit application and I am trying to implement application auto-update.
What I have done till now is:
- I am checking version of my application's package.json with the package.json from server.
- If they are different, I will download the new .exe from server.
- It's downloaded to user-folder\AppData\Local\Temp\ folder
Now I want to close the application which is open and run the new exe file. But I want to do it pragmatically. Can anyone help me in doing this? Is there a way to open application when it's path is specified?
Any kind of help is appreciated. Thanks in advance