       return "/Library/Octoblu/GatebluService/package.json"
 
     if process.platform == 'win32'
-      return "#{process.env['PROGRAMFILES(X86)']}\\Octoblu\\GatebluService\\package.json"
+      return "#{PROGRAMFILES}\\Octoblu\\GatebluService\\package.json"
 
     return './meshblu.json'
 

debug = require('debug')('gateblu-ui:GatebluService')
fs = require 'fs-extra'
{exec} = require 'child_process'

class GatebluService
  EVENTS_TO_FORWARD = [

        return callback error

    if process.platform == 'win32'
      exec "start \"GatebluServiceTray\" \"#{PROGRAMFILES}\\Octoblu\\GatebluService\\GatebluServiceTray.exe\"", (error, stdout, stdin) =>
        return callback error

    callback new Error "Unsupported Operating System"
