写入ProgramData文件夹中的数据库

时间:2015-06-24 18:48:34

标签: javascript firefox-addon programdata

我正在制作一个firefox扩展,允许我写入一个数据库,然后由c#程序访问。我发现这是两个人沟通的最简单方法。现在我需要将数据库驻留在programdata文件夹中,以便在客户端PC上安装时一切正常。我不知道该怎么做。我知道c#很简单,但我不知道如何从javascript。

1 个答案:

答案 0 :(得分:1)

你想要这个来自Firefox插件的路径:

var path_progData = Services.dirsvc.get('CmPrgs', Ci.nsIFile).path;

这会给你:

  • C:\ProgramData\Microsoft\Windows\Start Menu\Programs - 在8.1上测试过(我猜测它与Win7和8相同,但对Win7不确定)
  • C:\Documents and Settings\All Users\Start Menu\Programs - 适用于WinXP
  • ? - 对于WinVista(我有一台vista机器,但现在无法访问,稍后会更新)

您可能更喜欢CmAppData,它只能在Win8.1上提供C:\ProgramData

在所有平台上收集Firefox特殊路径的项目

所以几个月前我浏览了Firefox源码中的所有特殊路径关键字,我试图抓住它们,我可能已经错过了一些,如果我这样做,请提及它,以便我们可以改进这一点。我的目标是写一些东西,这样我就可以在所有平台上运行,看看特殊路径是什么。

这是我提出的代码,可以在浏览器环境中从scratchpad复制粘贴和运行:(顺便说一下,如果你的配置文件是相对于Profiles目录,或者它是一个绝对路径配置文件,路径会有所不同)(如果你使用Firefox的便携版本的路径不同)(并非所有路径只是一些,但在便携式的情况下,他们有点疯狂)(便携式Firefox只适用于Windows)

var DSP = Cc["@mozilla.org/file/directory_service;1"].getService(Ci.nsIProperties);
var keywords = [];
var str = [];


function doit() {
    for (var i=0; i<keywords.length; i++) {
        str.push('Keyword: "' + keywords[i] + '"');
        try {
           var methodFU = FileUtils.getFile(keywords[i], ['']);
            str[str.length-1] += '|FU = "' + methodFU.path + '"';
        } catch(ex) {
            str[str.length-1] += '|FU = "' + ex.message + '"';
        }
        try {
           var methodDS = DSP.get(keywords[i], Ci.nsIFile);
            str[str.length-1] += '|DS = "' + methodDS.path + '"';
        } catch(ex) {
            str[str.length-1] += '|DS = "' + ex.message + '"';
        }
    }
var gClipboardHelper = Components.classes["@mozilla.org/widget/clipboardhelper;1"].getService(Components.interfaces.nsIClipboardHelper);
gClipboardHelper.copyString(str.join('\n'))
    console.log(str.join('\n'));
}

var keywords = [
    //http://mxr.mozilla.org/mozilla-central/source/xpcom/io/nsAppDirectoryServiceDefs.h
    'AppRegF',
    'AppRegD',
    'DefRt',
    'PrfDef',
    'current',
    'default',
    'DefProfRt',
    'DefProfLRt',
    'ARes',
    'AChrom',
    'APlugns',
    'SrchPlugns',
    'AChromDL',
    'APluginsDL',
    'SrchPluginsDL',
    'SHARED',
    'PrefD',
    'PrefF',
    'MetroPrefF',
    'PrefDL',
    'ExtPrefDL',
    'PrefDOverride',
    'ProfD',
    'ProfLD',
    'UChrm',
    'UsrSrchPlugns',
    'LclSt',
    'UPnls',
    'UMimTyp',
    'cachePDir',
    'BMarks',
    'DLoads',
    'SrchF',
    'XPIClnupD',
    'indexedDBPDir',
    'permissionDBPDir',
    //http://mxr.mozilla.org/mozilla-central/source/xpcom/io/nsDirectoryServiceDefs.h
    'Home',
    'TmpD',
    'CurWorkD',
    'Home',
    'Desk',
    'CurProcD',
    'XCurProcD',
    'XpcomLib',
    'GreD',
    'SysD',
    'Trsh',
    'Strt',
    'Shdwn',
    'ApplMenu',
    'CntlPnl',
    'Exts',
    'Fnts',
    'Prfs',
    'Docs',
    'ISrch',
    'DfltDwnld',
    'ULibDir',
    'UsrDsk',
    'LocDsk',
    'UsrApp',
    'LocApp',
    'UsrDocs',
    'LocDocs',
    'UsrIntrntPlgn',
    'LoclIntrntPlgn',
    'UsrFrmwrks',
    'LocFrmwrks',
    'UsrPrfs',
    'LocPrfs',
    'Pct',
    'Mov',
    'Music',
    'IntrntSts',
    'WinD',
    'ProgF',
    'DeskV',
    'Progs',
    'Cntls',
    'Prnts',
    'Pers',
    'Favs',
    'Strt',
    'Rcnt',
    'SndTo',
    'Buckt',
    'Strt',
    'DeskP',
    'Drivs',
    'NetW',
    'netH',
    'Fnts',
    'Tmpls',
    'CmStrt',
    'CmPrgs',
    'CmDeskP',
    'CmAppData',
    'AppData',
    'LocalAppData',
    'PrntHd',
    'CookD',
    'DfltDwnld',
    'Docs',
    'Pict',
    'Music',
    'Vids',
    'Locl',
    'LibD',
    'XDGDesk',
    'XDGDocs',
    'XDGDwnld',
    'XDGMusic',
    'XDGPict',
    'XDGPubSh',
    'XDGTempl',
    'XDGVids',
    'DfltDwnld',
    'DrvD',
    //http://mxr.mozilla.org/mozilla-release/source/toolkit/mozapps/update/nsUpdateService.js#76
    'GreD',
    'UpdRootD',
    'XREExeF',
    //http://mxr.mozilla.org/mozilla-release/source/toolkit/mozapps/update/tests/shared.js#55
    'ProfDS',
    'ProfD',
    'GreD',
    'XCurProcD',
    'XREExeF',
    'UpdRootD',
    //http://mxr.mozilla.org/mozilla-release/source/xpcom/build/nsXULAppAPI.h
    'UAppData',
    'XREExtDL',
    'XREExeF',
    'started',
    'ProfDS',
    'started',
    'ProfLDS',
    'XRESysLExtPD',
    'XRESysSExtPD',
    'XREUSysExt',
    'XREAppDist',
    'UpdRootD',
    'UpdArchD',
    'OSUpdApplyToD'
];

doit();

因此特殊路径字在数组keywords中。了解所有平台的所有路径真是太棒了。

上面的代码在Win8.1上产生了这个,它复制到剪贴板,所以可以在这里运行和粘贴。

相对配置文件(常规方法)
  • 赢得8.1

    Keyword: "AppRegF"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\registry.dat"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\registry.dat"
    Keyword: "AppRegD"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox"
    Keyword: "DefRt"|FU = "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.create]"|DS = "C:\Program Files (x86)\Mozilla Firefox\browser\defaults"
    Keyword: "PrfDef"|FU = "C:\Program Files (x86)\Mozilla Firefox\defaults\pref"|DS = "C:\Program Files (x86)\Mozilla Firefox\defaults\pref"
    Keyword: "current"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "default"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "DefProfRt"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles"
    Keyword: "DefProfLRt"|FU = "C:\Users\Vayeate\AppData\Local\Mozilla\Firefox\Profiles"|DS = "C:\Users\Vayeate\AppData\Local\Mozilla\Firefox\Profiles"
    Keyword: "ARes"|FU = "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.create]"|DS = "C:\Program Files (x86)\Mozilla Firefox\browser\res"
    Keyword: "AChrom"|FU = "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.create]"|DS = "C:\Program Files (x86)\Mozilla Firefox\browser\chrome"
    Keyword: "APlugns"|FU = "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.create]"|DS = "C:\Program Files (x86)\Mozilla Firefox\browser\plugins"
    Keyword: "SrchPlugns"|FU = "C:\Program Files (x86)\Mozilla Firefox\browser\searchplugins"|DS = "C:\Program Files (x86)\Mozilla Firefox\browser\searchplugins"
    Keyword: "AChromDL"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "APluginsDL"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "SrchPluginsDL"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "SHARED"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "PrefD"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"
    Keyword: "PrefF"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\prefs.js"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\prefs.js"
    Keyword: "MetroPrefF"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\metro-prefs.js"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\metro-prefs.js"
    Keyword: "PrefDL"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "ExtPrefDL"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "PrefDOverride"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\preferences"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\preferences"
    Keyword: "ProfD"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"
    Keyword: "ProfLD"|FU = "C:\Users\Vayeate\AppData\Local\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"|DS = "C:\Users\Vayeate\AppData\Local\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"
    Keyword: "UChrm"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\chrome"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\chrome"
    Keyword: "UsrSrchPlugns"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\searchplugins"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\searchplugins"
    Keyword: "LclSt"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\localstore.rdf"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\localstore.rdf"
    Keyword: "UPnls"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "UMimTyp"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\mimeTypes.rdf"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\mimeTypes.rdf"
    Keyword: "cachePDir"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "BMarks"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\bookmarks.html"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\bookmarks.html"
    Keyword: "DLoads"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\downloads.rdf"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1\downloads.rdf"
    Keyword: "SrchF"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XPIClnupD"|FU = "C:\Program Files (x86)\Mozilla Firefox\browser"|DS = "C:\Program Files (x86)\Mozilla Firefox\browser"
    Keyword: "indexedDBPDir"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "permissionDBPDir"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "Home"|FU = "C:\Users\Vayeate"|DS = "C:\Users\Vayeate"
    Keyword: "TmpD"|FU = "C:\Users\Vayeate\AppData\Local\Temp"|DS = "C:\Users\Vayeate\AppData\Local\Temp"
    Keyword: "CurWorkD"|FU = "C:\Program Files (x86)\Mozilla Firefox"|DS = "C:\Program Files (x86)\Mozilla Firefox"
    Keyword: "Home"|FU = "C:\Users\Vayeate"|DS = "C:\Users\Vayeate"
    Keyword: "Desk"|FU = "C:\Users\Vayeate\Desktop"|DS = "C:\Users\Vayeate\Desktop"
    Keyword: "CurProcD"|FU = "C:\Program Files (x86)\Mozilla Firefox\browser"|DS = "C:\Program Files (x86)\Mozilla Firefox\browser"
    Keyword: "XCurProcD"|FU = "C:\Program Files (x86)\Mozilla Firefox\browser"|DS = "C:\Program Files (x86)\Mozilla Firefox\browser"
    Keyword: "XpcomLib"|FU = "C:\Program Files (x86)\Mozilla Firefox\xul.dll"|DS = "C:\Program Files (x86)\Mozilla Firefox\xul.dll"
    Keyword: "GreD"|FU = "C:\Program Files (x86)\Mozilla Firefox"|DS = "C:\Program Files (x86)\Mozilla Firefox"
    Keyword: "SysD"|FU = "C:\Windows\system32"|DS = "C:\Windows\system32"
    Keyword: "Trsh"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "Strt"|FU = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"|DS = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
    Keyword: "Shdwn"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "ApplMenu"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "CntlPnl"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "Exts"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "Fnts"|FU = "C:\Windows\Fonts"|DS = "C:\Windows\Fonts"
    Keyword: "Prfs"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "Docs"|FU = "C:\Users\Vayeate\Documents"|DS = "C:\Users\Vayeate\Documents"
    Keyword: "ISrch"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "DfltDwnld"|FU = "C:\Users\Vayeate\Downloads"|DS = "C:\Users\Vayeate\Downloads"
    Keyword: "ULibDir"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "UsrDsk"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "LocDsk"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "UsrApp"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "LocApp"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "UsrDocs"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "LocDocs"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "UsrIntrntPlgn"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "LoclIntrntPlgn"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "UsrFrmwrks"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "LocFrmwrks"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "UsrPrfs"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "LocPrfs"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "Pct"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "Mov"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "Music"|FU = "C:\Users\Vayeate\Music"|DS = "C:\Users\Vayeate\Music"
    Keyword: "IntrntSts"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "WinD"|FU = "C:\Windows"|DS = "C:\Windows"
    Keyword: "ProgF"|FU = "C:\Program Files (x86)"|DS = "C:\Program Files (x86)"
    Keyword: "DeskV"|FU = "C:\Users\Vayeate\Desktop"|DS = "C:\Users\Vayeate\Desktop"
    Keyword: "Progs"|FU = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Start Menu\Programs"|DS = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Start Menu\Programs"
    Keyword: "Cntls"|FU = "Component returned failure code: 0x80520009 (NS_ERROR_FILE_INVALID_PATH) [nsIFile.create]"|DS = ""
    Keyword: "Prnts"|FU = "Component returned failure code: 0x80520009 (NS_ERROR_FILE_INVALID_PATH) [nsIFile.create]"|DS = ""
    Keyword: "Pers"|FU = "C:\Users\Vayeate\Documents"|DS = "C:\Users\Vayeate\Documents"
    Keyword: "Favs"|FU = "C:\Users\Vayeate\Favorites"|DS = "C:\Users\Vayeate\Favorites"
    Keyword: "Strt"|FU = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"|DS = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
    Keyword: "Rcnt"|FU = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Recent"|DS = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Recent"
    Keyword: "SndTo"|FU = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\SendTo"|DS = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\SendTo"
    Keyword: "Buckt"|FU = "Component returned failure code: 0x80520009 (NS_ERROR_FILE_INVALID_PATH) [nsIFile.create]"|DS = ""
    Keyword: "Strt"|FU = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"|DS = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
    Keyword: "DeskP"|FU = "C:\Users\Vayeate\Desktop"|DS = "C:\Users\Vayeate\Desktop"
    Keyword: "Drivs"|FU = "Component returned failure code: 0x80520009 (NS_ERROR_FILE_INVALID_PATH) [nsIFile.create]"|DS = ""
    Keyword: "NetW"|FU = "Component returned failure code: 0x80520009 (NS_ERROR_FILE_INVALID_PATH) [nsIFile.create]"|DS = ""
    Keyword: "netH"|FU = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Network Shortcuts"|DS = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Network Shortcuts"
    Keyword: "Fnts"|FU = "C:\Windows\Fonts"|DS = "C:\Windows\Fonts"
    Keyword: "Tmpls"|FU = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Templates"|DS = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Templates"
    Keyword: "CmStrt"|FU = "C:\ProgramData\Microsoft\Windows\Start Menu"|DS = "C:\ProgramData\Microsoft\Windows\Start Menu"
    Keyword: "CmPrgs"|FU = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs"|DS = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs"
    Keyword: "CmDeskP"|FU = "C:\Users\Public\Desktop"|DS = "C:\Users\Public\Desktop"
    Keyword: "CmAppData"|FU = "C:\ProgramData"|DS = "C:\ProgramData"
    Keyword: "AppData"|FU = "C:\Users\Vayeate\AppData\Roaming"|DS = "C:\Users\Vayeate\AppData\Roaming"
    Keyword: "LocalAppData"|FU = "C:\Users\Vayeate\AppData\Local"|DS = "C:\Users\Vayeate\AppData\Local"
    Keyword: "PrntHd"|FU = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Printer Shortcuts"|DS = "C:\Users\Vayeate\AppData\Roaming\Microsoft\Windows\Printer Shortcuts"
    Keyword: "CookD"|FU = "C:\Users\Vayeate\AppData\Local\Microsoft\Windows\INetCookies"|DS = "C:\Users\Vayeate\AppData\Local\Microsoft\Windows\INetCookies"
    Keyword: "DfltDwnld"|FU = "C:\Users\Vayeate\Downloads"|DS = "C:\Users\Vayeate\Downloads"
    Keyword: "Docs"|FU = "C:\Users\Vayeate\Documents"|DS = "C:\Users\Vayeate\Documents"
    Keyword: "Pict"|FU = "C:\Users\Vayeate\Pictures"|DS = "C:\Users\Vayeate\Pictures"
    Keyword: "Music"|FU = "C:\Users\Vayeate\Music"|DS = "C:\Users\Vayeate\Music"
    Keyword: "Vids"|FU = "C:\Users\Vayeate\Videos"|DS = "C:\Users\Vayeate\Videos"
    Keyword: "Locl"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "LibD"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XDGDesk"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XDGDocs"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XDGDwnld"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XDGMusic"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XDGPict"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XDGPubSh"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XDGTempl"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XDGVids"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "DfltDwnld"|FU = "C:\Users\Vayeate\Downloads"|DS = "C:\Users\Vayeate\Downloads"
    Keyword: "DrvD"|FU = "C:"|DS = "C:"
    Keyword: "GreD"|FU = "C:\Program Files (x86)\Mozilla Firefox"|DS = "C:\Program Files (x86)\Mozilla Firefox"
    Keyword: "UpdRootD"|FU = "C:\Users\Vayeate\AppData\Local\Mozilla\updates\E7CF176E110C211B"|DS = "C:\Users\Vayeate\AppData\Local\Mozilla\updates\E7CF176E110C211B"
    Keyword: "XREExeF"|FU = "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"|DS = "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    Keyword: "ProfDS"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"
    Keyword: "ProfD"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"
    Keyword: "GreD"|FU = "C:\Program Files (x86)\Mozilla Firefox"|DS = "C:\Program Files (x86)\Mozilla Firefox"
    Keyword: "XCurProcD"|FU = "C:\Program Files (x86)\Mozilla Firefox\browser"|DS = "C:\Program Files (x86)\Mozilla Firefox\browser"
    Keyword: "XREExeF"|FU = "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"|DS = "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    Keyword: "UpdRootD"|FU = "C:\Users\Vayeate\AppData\Local\Mozilla\updates\E7CF176E110C211B"|DS = "C:\Users\Vayeate\AppData\Local\Mozilla\updates\E7CF176E110C211B"
    Keyword: "UAppData"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox"
    Keyword: "XREExtDL"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XREExeF"|FU = "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"|DS = "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    Keyword: "started"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "ProfDS"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"
    Keyword: "started"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "ProfLDS"|FU = "C:\Users\Vayeate\AppData\Local\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"|DS = "C:\Users\Vayeate\AppData\Local\Mozilla\Firefox\Profiles\qekfxcdm.Unnamed Profile 1"
    Keyword: "XRESysLExtPD"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XRESysSExtPD"|FU = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"|DS = "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]"
    Keyword: "XREUSysExt"|FU = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Extensions"|DS = "C:\Users\Vayeate\AppData\Roaming\Mozilla\Extensions"
    Keyword: "XREAppDist"|FU = "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.create]"|DS = "C:\Program Files (x86)\Mozilla Firefox\distribution"
    Keyword: "UpdRootD"|FU = "C:\Users\Vayeate\AppData\Local\Mozilla\updates\E7CF176E110C211B"|DS = "C:\Users\Vayeate\AppData\Local\Mozilla\updates\E7CF176E110C211B"
    

我只在上面的相对路径配置文件中粘贴了Win8.1,其余的我在评论中收集它们:https://gist.github.com/Noitidart/715840fa5008ee032017因为Stack Overflow不允许这么多文本。