mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-25 12:43:30 +00:00
Added work-around for service-manager if %ProgramFiles(x86)% doesn't exist, to work around issue of Windows 7 erroneously returning IsWOW64
This commit is contained in:
@@ -562,7 +562,7 @@ function serviceManager()
|
||||
// 64 bit Windows
|
||||
if (this.GM.PointerSize == 4)
|
||||
{
|
||||
return process.env['ProgramFiles(x86)']; // 32 Bit App
|
||||
return (process.env['ProgramFiles(x86)'] ? process.env['ProgramFiles(x86)'] : process.env['ProgramFiles']);
|
||||
}
|
||||
return process.env['ProgramFiles']; // 64 bit App
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user