mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-22 11:13:21 +00:00
Fixed bug in Windows Installer when querying agent name if service has never been installed
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -82,7 +82,14 @@ function checkParameters(parms)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Still no meshServiceName specified... Let's also check installed services...
|
// Still no meshServiceName specified... Let's also check installed services...
|
||||||
var tmp = require('_agentNodeId').serviceName();
|
var tmp = process.platform == 'win32' ? 'Mesh Agent' : 'meshagent';
|
||||||
|
try
|
||||||
|
{
|
||||||
|
tmp = require('_agentNodeId').serviceName();
|
||||||
|
}
|
||||||
|
catch(xx)
|
||||||
|
{
|
||||||
|
}
|
||||||
if(tmp != (process.platform == 'win32' ? 'Mesh Agent' : 'meshagent'))
|
if(tmp != (process.platform == 'win32' ? 'Mesh Agent' : 'meshagent'))
|
||||||
{
|
{
|
||||||
parms.push('--meshServiceName="' + tmp + '"');
|
parms.push('--meshServiceName="' + tmp + '"');
|
||||||
|
|||||||
Reference in New Issue
Block a user