     dialog.showMessageBox
       type: 'warning'
       buttons: ['OK']
-      icon: path.resolve(__dirname, '..', '..', 'resources', 'atom.png')
+      icon: @iconPath
       message: 'There was an error checking for updates.'
       title: 'Update Error'
       detail: message

    dialog.showMessageBox
      type: 'info'
      buttons: ['OK']
      icon: path.resolve(__dirname, '..', '..', 'resources', 'atom.png')
      message: 'No update available.'
      title: 'No Update Available'
      detail: "Version #{@version} is the latest version."


  constructor: (@version) ->
    @state = IdleState
    @iconPath = path.resolve(__dirname, '..', '..', 'resources', 'atom.png');
    if process.platform is 'win32'
      # Squirrel for Windows can't handle query params
      # https://github.com/Squirrel/Squirrel.Windows/issues/132
      @feedUrl = 'https://atom.io/api/updates'
      @iconPath = null;
    else
      @feedUrl = "https://atom.io/api/updates?version=#{@version}"

