                       @input outlet: 'fileContextMenuCheckbox', id: 'system.windows.shell-menu-files', type: 'checkbox'
                       @div class: 'setting-title', 'Show in file context menus'
                       @div class: 'setting-description', =>
-                        @raw("Add \"Open with #{WindowsShell.appName}\" to the File Explorer context menu for files.")
+                        @raw("Add \"Open with #{WinShell.appName}\" to the File Explorer context menu for files.")
               @div class: 'control-group', =>
                 @div class: 'controls', =>
                   @div class: 'checkbox', =>

    WinShell.fileContextMenu.isRegistered (i) => @fileContextMenuCheckbox.prop('checked', i)
    WinShell.folderContextMenu.isRegistered (i) => @folderContextMenuCheckbox.prop('checked', i)

    @fileHandlerCheckbox.on 'click', (e) -> setRegistration WinShell.fileHandler, e.target.clicked
    @fileContextMenuCheckbox.on 'click', (e) -> setRegistration WinShell.fileContextMenu, e.target.clicked
    @folderContextMenuCheckbox.on 'click', (e) ->
      setRegistration WinShell.folderContextMenu, e.target.clicked
      setRegistration WinShell.folderBackgroundContextMenu, e.target.clicked

  setRegistration: (option, shouldBeRegistered) ->
    if shouldBeRegistered

                      @input outlet: 'folderContextMenuCheckbox', id: 'system.windows.shell-menu-folders', type: 'checkbox'
                      @div class: 'setting-title', 'Show in folder context menus'
                      @div class: 'setting-description', =>
                        @raw("Add \"Open with #{WinShell.appName}\" to the File Explorer context menu for folders.")

  initialize: ->
    super
