Friday, 15 March 2013

node.js - Node-Webkit: Run application on download complete -


I have created a node-webkit application and I am trying to apply the application auto -update .

What I've done so far:

  1. I'm looking at the version of the package of my application. Package.json from json server
  2. If they are different, then I will download the new .exe from the server.
  3. This user-folder has been downloaded to \ AppData \ Local \ Temp \ folder

Now I want to close the application which is open and To run the new exe file. But I want to do it practically Does anyone help me do this? When a path has been specified, is there any way to open the application?

Any kind of help is appreciated. Thanks in advance

You can use spawn from the API.

Something new:

  is needed ("child_process"). (Eggs) (spawn) 'path / in / new / exe', [], {different: true}). Unref (); Requires ('nw.gui') Window.get () pass (right) ..  

No comments:

Post a Comment