Adam Lynch
Adam Lynch
Instead of `upd.run(execPath, null);`, try `gui.Shell.openItem(execPath)`.
Is `execPath` what you'd expect? (The path to the `.exe` of the new update)
@Michael00767 > And I check the old version folder ,it was occupied by the new app run from temp directory. This sounds like it _is_ being copied? I'm not sure...
Hmm @hermwong this is weird. The result of `getAppPath` and `getAppPath` should never be the same on Windows. See here https://github.com/edjafarov/node-webkit-updater/blob/master/app/updater.js#L138 that `getAppExec` is the result of joining `getAppPath` (the...
@ycanales you definitely killed the old one in step 4?
@neels I guess we should add an option for this. I don't know what that option would be named though. Would you like to submit a pull-request to add this?
https://github.com/cranic/node-tar.gz/issues/14
> For copying over the old app code, this never actually happens. So the new `.nw` is downloaded to temp or somewhere and the `.exe` is spawned using this, but...
> The windows version doesn't run the app from app.nw, rather it runs it from the 'app' folder. So you mean `src/app`? > I was talking about the PT version...
@sashahilton00 > No, when I say the 'app' folder, I mean the one that the installer creates, located somewhere like: /Appdata/.../Your-App-Name/app/, which houses all of the files for the node-webkit...