Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix variable to update #686

Merged
merged 1 commit into from
Oct 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions lib/agent/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ var join = require('path').join,
child_process = require('child_process'),
os = require('os'),
exec = child_process.exec,
needle = require('needle'),
updater_path = join(system.paths.package, 'bin', 'updater.exe'),
sys_win = require('./../system/windows/');
needle = require('needle');

var timer, timer2; // for interval check
exports.upgrading = false;
Expand Down Expand Up @@ -132,6 +130,10 @@ exports.check_for_update_winsvc = (cb) => {
if (os.platform() != 'win32')
return cb(new Error('Action only allowed on Windows'));

console.log(join(system.paths.package, 'bin', 'updater.exe'))

let updater_path = join(system.paths.package, 'bin', 'updater.exe'),
sys_win = require('./../system/windows/');
/** Get the current version of winsvc running on the device. */
sys_win.get_winsvc_version((err, current_service_version) => {
if (err) return cb(new Error("Error to get winsvc version"));
Expand Down