                       @input outlet: 'fileHandlerCheckbox', id: 'system.windows.file-handler', type: 'checkbox'
                       @div class: 'setting-title', 'Register as file handler'
                       @div class: 'setting-description', =>
-                        @raw("Show #{WindowsShell.appName} in the \"Open with\" application list for easy association with file types.")
+                        @raw("Show #{WinShell.appName} in the \"Open with\" application list for easy association with file types.")
               @div class: 'control-group', =>
                 @div class: 'controls', =>
                   @div class: 'checkbox', =>

                      @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.")
              @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.checked
    @fileContextMenuCheckbox.on 'click', (e) => @setRegistration WinShell.fileContextMenu, e.target.checked
    @folderContextMenuCheckbox.on 'click', (e) =>
      @setRegistration WinShell.folderContextMenu, e.target.checked
      @setRegistration WinShell.folderBackgroundContextMenu, e.target.checked

  setRegistration: (option, shouldBeRegistered) ->
    if shouldBeRegistered
