add xpinstall content type settings to shell service and installer registrations
git-svn-id: svn://10.0.0.236/trunk@155910 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -152,6 +152,12 @@ typedef struct {
|
||||
PREFIX MID SUFFIX
|
||||
|
||||
static SETTING gSettings[] = {
|
||||
// Extension Manager Keys
|
||||
{ MAKE_KEY_NAME1(CLS, "MIME\\Database\\Content Type\\application/x-xpinstall;app=firefox"),
|
||||
"Extension",
|
||||
".xpi",
|
||||
NO_SUBSTITUTION | NON_ESSENTIAL },
|
||||
|
||||
// File Extension Aliases
|
||||
{ MAKE_KEY_NAME1(CLS, ".htm"), "", CLS_HTML, NO_SUBSTITUTION | NON_ESSENTIAL },
|
||||
{ MAKE_KEY_NAME1(CLS, ".html"), "", CLS_HTML, NO_SUBSTITUTION | NON_ESSENTIAL },
|
||||
|
||||
@@ -381,6 +381,11 @@ function updateWinReg()
|
||||
winreg.createKey(subkey,"");
|
||||
err = winreg.setValueString(subkey, "", fProgram + "$MainExeFile$");
|
||||
err = winreg.setValueString(subkey, "Path", fProgram);
|
||||
|
||||
// XPInstall content type mappings.
|
||||
subkey = "SOFTWARE\\Classes\\MIME\\Database\\Content Type\\application/x-xpinstall;app=firefox"
|
||||
winreg.createKey(subkey, "");
|
||||
winreg.setValueString(subkey, "Extension", ".xpi");
|
||||
}
|
||||
|
||||
winreg.setRootKey(winreg.HKEY_CURRENT_USER);
|
||||
|
||||
Reference in New Issue
Block a user