Fixed Attempted to perform an unauthorized operation error when setting Google Chrome & Firefox as default browser due to new MS UCPD blacklist. (Issue #139)

This commit is contained in:
Homes32
2025-05-13 00:01:22 -05:00
parent b455fef569
commit 41d9d0d204
2 changed files with 208 additions and 212 deletions

View File

@@ -35,8 +35,8 @@ Author=Homes32
Level=5 Level=5
Selected=False Selected=False
Mandatory=False Mandatory=False
Version=1.1.16.0 Version=1.1.17.0
Date=2025-05-06 Date=2025-05-11
[Variables] [Variables]
%ProgramFolder%="Chrome" %ProgramFolder%="Chrome"
@@ -107,20 +107,20 @@ StrFormat,Replace,"%PEPrograms%\%ProgramFolder%","\","\\",%ProgramDirEsc%
TxtAddLine,"%TargetPrograms%\%ProgramFolder%\master_preferences","{#$qdistribution#$q:{#$qimport_bookmarks_from_file#$q:#$q%ProgramDirEsc%\\bookmarks.html#$q,#$qsuppress_first_run_bubble#$q:true,#$qdo_not_create_desktop_shortcut#$q:true,#$qdo_not_create_quick_launch_shortcut#$q:true,#$qdo_not_launch_chrome#$q:true,#$qdo_not_register_for_update_launch#$q:true,#$qmake_chrome_default#$q:true,#$qmake_chrome_default_for_user#$q:true,#$qsuppress_first_run_default_browser_prompt#$q:true,#$qsystem_level#$q:true},#$qhomepage#$q:#$q${txt_Homepage}#$q,#$qhomepage_is_newtabpage#$q:${homepage_is_newtabpage},#$qfirst_run_tabs#$q:[#$q${txt_Homepage}#$q]}",APPEND TxtAddLine,"%TargetPrograms%\%ProgramFolder%\master_preferences","{#$qdistribution#$q:{#$qimport_bookmarks_from_file#$q:#$q%ProgramDirEsc%\\bookmarks.html#$q,#$qsuppress_first_run_bubble#$q:true,#$qdo_not_create_desktop_shortcut#$q:true,#$qdo_not_create_quick_launch_shortcut#$q:true,#$qdo_not_launch_chrome#$q:true,#$qdo_not_register_for_update_launch#$q:true,#$qmake_chrome_default#$q:true,#$qmake_chrome_default_for_user#$q:true,#$qsuppress_first_run_default_browser_prompt#$q:true,#$qsystem_level#$q:true},#$qhomepage#$q:#$q${txt_Homepage}#$q,#$qhomepage_is_newtabpage#$q:${homepage_is_newtabpage},#$qfirst_run_tabs#$q:[#$q${txt_Homepage}#$q]}",APPEND
// App Path // App Path
RegWrite,HKLM,0x2,"Tmp_Software\Microsoft\Windows\CurrentVersion\App Paths\%ProgramExe%","","%PEPrograms%\%ProgramFolder%\%ProgramExe%" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Microsoft\Windows\CurrentVersion\App Paths\%ProgramExe%","","%PEPrograms%\%ProgramFolder%\%ProgramExe%"
RegWrite,HKLM,0x2,"Tmp_Software\Microsoft\Windows\CurrentVersion\App Paths\%ProgramExe%","Path","%PEPrograms%\%ProgramFolder%" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Microsoft\Windows\CurrentVersion\App Paths\%ProgramExe%","Path","%PEPrograms%\%ProgramFolder%"
If,%SourceArch%,Equal,"x64",Begin If,%SourceArch%,Equal,"x64",Begin
RegWrite,HKLM,0x2,"Tmp_Software\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\%ProgramExe%","","%PEPrograms%\%ProgramFolder%\%ProgramExe%" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\%ProgramExe%","","%PEPrograms%\%ProgramFolder%\%ProgramExe%"
RegWrite,HKLM,0x2,"Tmp_Software\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\%ProgramExe%","Path","%PEPrograms%\%ProgramFolder%" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\%ProgramExe%","Path","%PEPrograms%\%ProgramFolder%"
End End
// Active Setup // Active Setup
FileVersion,"%TargetPrograms%\%ProgramFolder%\%ProgramExe%",%ProgramVer% FileVersion,"%TargetPrograms%\%ProgramFolder%\%ProgramExe%",%ProgramVer%
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}","","Google Chrome" RegWrite,HKLM,REG_SZ,"Tmp_Software\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}","","Google Chrome"
RegWrite,HKLM,0x4,"Tmp_Software\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}","IsInstalled",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}","IsInstalled",1
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}","Localized Name","Google Chrome" RegWrite,HKLM,REG_SZ,"Tmp_Software\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}","Localized Name","Google Chrome"
RegWrite,HKLM,0x2,"Tmp_Software\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}","StubPath","#$q%PEPrograms%\%ProgramFolder%\%ProgramVer%\Installer\chrmstp.exe#$q --configure-user-settings --verbose-logging --system-level --multi-install --chrome" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}","StubPath","#$q%PEPrograms%\%ProgramFolder%\%ProgramVer%\Installer\chrmstp.exe#$q --configure-user-settings --verbose-logging --system-level --multi-install --chrome"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}","Version",%ProgramVer% RegWrite,HKLM,REG_SZ,"Tmp_Software\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}","Version",%ProgramVer%
/////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////
// User Config - Script Interface // User Config - Script Interface
@@ -128,23 +128,23 @@ RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Active Setup\Installed Components\{8A6
// Language (Policy) // Language (Policy)
StrFormat,Split,%cmb_Language%,"[",2,%Lang% StrFormat,Split,%cmb_Language%,"[",2,%Lang%
StrFormat,RTrim,%Lang%,1,%Lang% StrFormat,RTrim,%Lang%,1,%Lang%
RegWrite,HKLM,0x1,"Tmp_Software\Policies\Google\Chrome\Recommended","ApplicationLocaleValue","%Lang%" RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Google\Chrome\Recommended","ApplicationLocaleValue","%Lang%"
// Show Home Button (Policy) // Show Home Button (Policy)
If,%cb_ShowHomeBtn%,Equal,True,RegWrite,HKLM,0x4,"Tmp_Software\Policies\Google\Chrome\Recommended","ShowHomeButton",1 If,%cb_ShowHomeBtn%,Equal,True,RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Google\Chrome\Recommended","ShowHomeButton",1
Else,RegWrite,HKLM,0x4,"Tmp_Software\Policies\Google\Chrome\Recommended","ShowHomeButton",0 Else,RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Google\Chrome\Recommended","ShowHomeButton",0
// ShowBookmarksToolbar (Policy) // ShowBookmarksToolbar (Policy)
If,%cb_ShowBookmarksToolbar%,Equal,True,RegWrite,HKLM,0x4,"Tmp_Software\Policies\Google\Chrome\Recommended","BookmarkBarEnabled",1 If,%cb_ShowBookmarksToolbar%,Equal,True,RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Google\Chrome\Recommended","BookmarkBarEnabled",1
Else,RegWrite,HKLM,0x4,"Tmp_Software\Policies\Google\Chrome\Recommended","BookmarkBarEnabled",0 Else,RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Google\Chrome\Recommended","BookmarkBarEnabled",0
// Show Apps shortcut in bookmark toolbar (Policy) // Show Apps shortcut in bookmark toolbar (Policy)
If,%cb_ShowAppsShortcutInBookmarkBar%,Equal,True,RegWrite,HKLM,0x4,"Tmp_Software\Policies\Google\Chrome\Recommended","ShowAppsShortcutInBookmarkBar",1 If,%cb_ShowAppsShortcutInBookmarkBar%,Equal,True,RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Google\Chrome\Recommended","ShowAppsShortcutInBookmarkBar",1
Else,RegWrite,HKLM,0x4,"Tmp_Software\Policies\Google\Chrome\Recommended","ShowAppsShortcutInBookmarkBar",0 Else,RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Google\Chrome\Recommended","ShowAppsShortcutInBookmarkBar",0
// Disable Search Suggestions (Policy) // Disable Search Suggestions (Policy)
If,%cb_DisableSearchSuggestions%,Equal,True,RegWrite,HKLM,0x4,"Tmp_Software\Policies\Google\Chrome\Recommended","SearchSuggestEnabled",0 If,%cb_DisableSearchSuggestions%,Equal,True,RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Google\Chrome\Recommended","SearchSuggestEnabled",0
Else,RegWrite,HKLM,0x4,"Tmp_Software\Policies\Google\Chrome\Recommended","SearchSuggestEnabled",1 Else,RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Google\Chrome\Recommended","SearchSuggestEnabled",1
// Homepage (master_preferences) // Homepage (master_preferences)
If,%txt_Homepage%,Equal,"",Begin If,%txt_Homepage%,Equal,"",Begin
@@ -168,7 +168,7 @@ End
Else,Begin Else,Begin
Echo,"Importing default bookmarks." Echo,"Importing default bookmarks."
TxtReplace,"%TargetPrograms%\%ProgramFolder%\master_preferences","#$qimport_bookmarks_from_file#$q:#$q%ProgramDirEsc%\\bookmarks.html#$q,","" TxtReplace,"%TargetPrograms%\%ProgramFolder%\master_preferences","#$qimport_bookmarks_from_file#$q:#$q%ProgramDirEsc%\\bookmarks.html#$q,",""
RegWrite,HKLM,0x1,"Tmp_Software\Policies\Google\Chrome","ManagedBookmarks","[{#$qtoplevel_name#$q: #$qWinPE#$q},{#$qname#$q:#$qThe Oven#$q,#$qurl#$q:#$qtheoven.org#$q},{#$qname#$q:#$qReboot#$q,#$qurl#$q:#$qreboot.pro#$q},{#$qname#$q:#$qMSFN#$q,#$qurl#$q:#$qmsfn.org#$q},{#$qname#$q:#$qPhoenixPE#$q,#$qurl#$q:#$qgithub.com/PhoenixPE#$q},{#$qname#$q:#$qPEBakery#$q,#$qurl#$q:#$qgithub.com/pebakery/#$q}]" RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Google\Chrome","ManagedBookmarks","[{#$qtoplevel_name#$q: #$qWinPE#$q},{#$qname#$q:#$qThe Oven#$q,#$qurl#$q:#$qtheoven.org#$q},{#$qname#$q:#$qReboot#$q,#$qurl#$q:#$qreboot.pro#$q},{#$qname#$q:#$qMSFN#$q,#$qurl#$q:#$qmsfn.org#$q},{#$qname#$q:#$qPhoenixPE#$q,#$qurl#$q:#$qgithub.com/PhoenixPE#$q},{#$qname#$q:#$qPEBakery#$q,#$qurl#$q:#$qgithub.com/pebakery/#$q}]"
End End
Echo,"Configuring Extensions..." Echo,"Configuring Extensions..."
@@ -211,13 +211,13 @@ Set,%ExtensionJSON%,"%ExtensionJSON% }"
// END: Build JSON string for selected extensions // END: Build JSON string for selected extensions
// ExtensionSettings (Policy) // ExtensionSettings (Policy)
RegWrite,HKLM,0x1,"Tmp_Software\Policies\Google\Chrome\","ExtensionSettings","%ExtensionJSON%" RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Google\Chrome\","ExtensionSettings","%ExtensionJSON%"
/////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////
// Other Preferences - Not configured via script interface // Other Preferences - Not configured via script interface
// Don't show default browser warning (Policy) // Don't show default browser warning (Policy)
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Google\Chrome","DefaultBrowserSettingEnabled",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Google\Chrome","DefaultBrowserSettingEnabled",0
[#RegisterFileExtensions#] [#RegisterFileExtensions#]
// =============================================================================================================================== // ===============================================================================================================================
@@ -234,89 +234,87 @@ RegWrite,HKLM,0x4,"Tmp_Software\Policies\Google\Chrome","DefaultBrowserSettingEn
Echo,"Configuring Google Chrome as the Default Browser..." Echo,"Configuring Google Chrome as the Default Browser..."
// File Associations // File Associations
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.htm","","ChromeHTML" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.htm","","ChromeHTML"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.htm\OpenWithProgids","ChromeHTML","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.htm\OpenWithProgids","ChromeHTML",""
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.html","","ChromeHTML" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.html","","ChromeHTML"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.html\OpenWithProgids","ChromeHTML","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.html\OpenWithProgids","ChromeHTML",""
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.shtml","","ChromeHTML" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.shtml","","ChromeHTML"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.shtml\OpenWithProgids","ChromeHTML","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.shtml\OpenWithProgids","ChromeHTML",""
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.xht","","ChromeHTML" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.xht","","ChromeHTML"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.xht\OpenWithProgids","ChromeHTML","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.xht\OpenWithProgids","ChromeHTML",""
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.xhtml","","ChromeHTML" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.xhtml","","ChromeHTML"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.xhtml\OpenWithProgids","ChromeHTML","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.xhtml\OpenWithProgids","ChromeHTML",""
// FTP Protocol // FTP Protocol
RegWrite,HKLM,0x1,"Tmp_Software\Classes\ftp","URL Protocol","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\ftp","URL Protocol",""
RegWrite,HKLM,0x1,"Tmp_Software\Classes\ftp","","URL:File Transfer Protocol" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\ftp","","URL:File Transfer Protocol"
RegWrite,HKLM,0x2,"Tmp_Software\Classes\ftp\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,0" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Classes\ftp\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,0"
RegWrite,HKLM,0x2,"Tmp_Software\Classes\ftp\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -- #$q#$p1#$q" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Classes\ftp\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q #$q#$p1#$q"
// HTTP Protocol // HTTP Protocol
RegWrite,HKLM,0x1,"Tmp_Software\Classes\http","URL Protocol","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\http","URL Protocol",""
RegWrite,HKLM,0x1,"Tmp_Software\Classes\http","","URL:HyperText Transfer Protocol" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\http","","URL:HyperText Transfer Protocol"
RegWrite,HKLM,0x2,"Tmp_Software\Classes\http\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,0" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Classes\http\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,0"
RegWrite,HKLM,0x2,"Tmp_Software\Classes\http\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -- #$q#$p1#$q" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Classes\http\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q #$q#$p1#$q"
// HTTPS Protocol // HTTPS Protocol
RegWrite,HKLM,0x1,"Tmp_Software\Classes\https","URL Protocol","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\https","URL Protocol",""
RegWrite,HKLM,0x1,"Tmp_Software\Classes\https","","URL:HyperText Transfer Protocol with Privacy" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\https","","URL:HyperText Transfer Protocol with Privacy"
RegWrite,HKLM,0x2,"Tmp_Software\Classes\https\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,0" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Classes\https\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,0"
RegWrite,HKLM,0x2,"Tmp_Software\Classes\https\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -- #$q#$p1#$q" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Classes\https\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q #$q#$p1#$q"
// HTML File Associations // HTML File Associations
RegWrite,HKLM,0x1,"Tmp_Software\Classes\ChromeHTML","","Chrome HTML Document" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\ChromeHTML","","Chrome HTML Document"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\ChromeHTML","FriendlyTypeName","Chrome HTML Document" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\ChromeHTML","FriendlyTypeName","Chrome HTML Document"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\ChromeHTML","URL Protocol","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\ChromeHTML","URL Protocol",""
RegWrite,HKLM,0x4,"Tmp_Software\Classes\ChromeHTML","EditFlags",2 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Classes\ChromeHTML","EditFlags",2
RegWrite,HKLM,0x1,"Tmp_Software\Classes\ChromeHTML\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,0" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\ChromeHTML\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,10"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\ChromeHTML\shell","","open" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\ChromeHTML\shell","","open"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\ChromeHTML\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -- #$q#$p1#$q" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\ChromeHTML\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q --single-argument #$q#$p1#$q"
// URL File Associations // URL File Associations
RegWrite,HKLM,0x1,"Tmp_Software\Classes\ChromeURL","","Chrome URL" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\ChromeURL","","Chrome URL"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\ChromeURL","FriendlyTypeName","Chrome URL" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\ChromeURL","FriendlyTypeName","Chrome URL"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\ChromeURL","URL Protocol","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\ChromeURL","URL Protocol",""
RegWrite,HKLM,0x4,"Tmp_Software\Classes\ChromeURL","EditFlags",2 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Classes\ChromeURL","EditFlags",2
RegWrite,HKLM,0x1,"Tmp_Software\Classes\ChromeURL\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,0" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\ChromeURL\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,0"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\ChromeURL\shell","","open" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\ChromeURL\shell","","open"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\ChromeURL\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -- #$q#$p1#$q" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\ChromeURL\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q #$q#$p1#$q"
// URL Associations // URL Associations
RegWrite,HKLM,0x2,"Tmp_Software\Classes\InternetShortcut\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -- #$q#$p1#$q" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Classes\InternetShortcut\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q #$q#$p1#$q"
RegWrite,HKLM,0x2,"Tmp_Software\Classes\Applications\chrome.exe\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -- #$q#$p1#$q" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Classes\Applications\chrome.exe\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q #$q#$p1#$q"
// Open-With Programs List // Open-With Programs List
RegWrite,HKLM,0x4,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","ChromeHTML_.shtml",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","ChromeHTML_.shtml",0
RegWrite,HKLM,0x4,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","ChromeHTML_.xht",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","ChromeHTML_.xht",0
RegWrite,HKLM,0x4,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","ChromeHTML_.htm",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","ChromeHTML_.htm",0
RegWrite,HKLM,0x4,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","ChromeHTML_.xhtml",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","ChromeHTML_.xhtml",0
RegWrite,HKLM,0x4,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","ChromeHTML_.html",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","ChromeHTML_.html",0
RegWrite,HKLM,0x4,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","ChromeURL_FTP",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","ChromeURL_FTP",0
RegWrite,HKLM,0x4,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","ChromeURL_HTTP",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","ChromeURL_HTTP",0
RegWrite,HKLM,0x4,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","ChromeURL_HTTPS",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","ChromeURL_HTTPS",0
// Associations // Associations
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm\UserChoice","ProgId","ChromeHTML" // Newer Windows UCPD aggressively blocks writing to the offline registry keys (Prohibited Operation), so we have to write them during PE startup.
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\UserChoice","ProgId","ChromeHTML" // More Info: https://theoven.org/viewtopic.php?p=1957
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.shtml\UserChoice","ProgId","ChromeHTML"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.xht\UserChoice","ProgId","ChromeHTML"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.xhtml\UserChoice","ProgId","ChromeHTML"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.htm\UserChoice","ProgId","ChromeHTML" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeHTML#$q)"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.html\UserChoice","ProgId","ChromeHTML" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeHTML#$q)"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.shtml\UserChoice","ProgId","ChromeHTML" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.shtml\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeHTML#$q)"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.xht\UserChoice","ProgId","ChromeHTML" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.xht\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeHTML#$q)"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.xhtml\UserChoice","ProgId","ChromeHTML" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.xhtml\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeHTML#$q)"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Roaming\OpenWith\UrlAssociations\FTP\UserChoice","ProgId","ChromeURL" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.htm\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeHTML#$q)"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Roaming\OpenWith\UrlAssociations\http\UserChoice","ProgId","ChromeURL" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.html\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeHTML#$q)"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Roaming\OpenWith\UrlAssociations\https\UserChoice","ProgId","ChromeURL" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.shtml\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeHTML#$q)"
AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.xht\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeHTML#$q)"
AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.xhtml\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeHTML#$q)"
//RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Shell\Associations\UrlAssociations\FTP\UserChoice","ProgId","ChromeURL" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Roaming\OpenWith\UrlAssociations\FTP\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeURL#$q)"
//RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice","ProgId","ChromeURL" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Roaming\OpenWith\UrlAssociations\http\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeURL#$q)"
//RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice","ProgId","ChromeURL" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Roaming\OpenWith\UrlAssociations\https\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeURL#$q)"
// Newer Windows aggressively blocks writing to the offline registry keys (Prohibited Operation), so we have to write them during PE startup.
AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\FTP\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeURL#$q)" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\FTP\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeURL#$q)"
AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeURL#$q)" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeURL#$q)"
AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeURL#$q)" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qChromeURL#$q)"

View File

@@ -35,8 +35,8 @@ Author=Homes32
Level=5 Level=5
Selected=True Selected=True
Mandatory=False Mandatory=False
Version=1.1.4.0 Version=1.1.5.0
Date=2024-11-10 Date=2025-05-11
[Variables] [Variables]
%ProgramFolder%="Firefox" %ProgramFolder%="Firefox"
@@ -142,38 +142,38 @@ Echo,"Configuring Firefox..."
// User Config - Script Interface // User Config - Script Interface
// Show Menu Bar // Show Menu Bar
If,%cb_ShowMenuBar%,Equal,True,RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox","DisplayMenuBar",1 If,%cb_ShowMenuBar%,Equal,True,RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox","DisplayMenuBar",1
Else,RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox","DisplayMenuBar",0 Else,RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox","DisplayMenuBar",0
// ShowBookmarksToolbar // ShowBookmarksToolbar
If,%cb_ShowBookmarksToolbar%,Equal,True,RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox","DisplayBookmarksToolbar",1 If,%cb_ShowBookmarksToolbar%,Equal,True,RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox","DisplayBookmarksToolbar",1
Else,RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox","DisplayBookmarksToolbar",0 Else,RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox","DisplayBookmarksToolbar",0
// Show Search Bar // Show Search Bar
If,%cb_ShowSearchBar%,Equal,True,RegWrite,HKLM,0x1,"Tmp_Software\Policies\Mozilla\Firefox","SearchBar","unified" If,%cb_ShowSearchBar%,Equal,True,RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Mozilla\Firefox","SearchBar","unified"
Else,RegWrite,HKLM,0x1,"Tmp_Software\Policies\Mozilla\Firefox","SearchBar","separate" Else,RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Mozilla\Firefox","SearchBar","separate"
// Disable Search Suggestions // Disable Search Suggestions
If,%cb_DisableSearchSuggestions%,Equal,True,RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox","SearchSuggestEnabled",0 If,%cb_DisableSearchSuggestions%,Equal,True,RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox","SearchSuggestEnabled",0
Else,RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox","SearchSuggestEnabled",1 Else,RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox","SearchSuggestEnabled",1
// Warn On Close // Warn On Close
If,%cb_WarnOnClose%,Equal,False,Begin If,%cb_WarnOnClose%,Equal,False,Begin
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\Preferences","browser.tabs.warnOnClose",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\Preferences","browser.tabs.warnOnClose",1
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\Preferences","browser.tabs.warnOnCloseOtherTabs",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\Preferences","browser.tabs.warnOnCloseOtherTabs",1
End End
Else,Begin Else,Begin
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\Preferences","browser.tabs.warnOnClose",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\Preferences","browser.tabs.warnOnClose",0
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\Preferences","browser.tabs.warnOnCloseOtherTabs",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\Preferences","browser.tabs.warnOnCloseOtherTabs",0
End End
// Homepage // Homepage
If,Not,%txt_Homepage%,Equal,"",Begin If,Not,%txt_Homepage%,Equal,"",Begin
RegWrite,HKLM,0x1,"Tmp_Software\Policies\Mozilla\Firefox\Homepage","StartPage","homepage" RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Mozilla\Firefox\Homepage","StartPage","homepage"
RegWrite,HKLM,0x1,"Tmp_Software\Policies\Mozilla\Firefox\Homepage","URL","%txt_Homepage%" RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Mozilla\Firefox\Homepage","URL","%txt_Homepage%"
RegWrite,HKLM,0x1,"Tmp_Software\Policies\Mozilla\Firefox","OverrideFirstRunPage","%txt_Homepage%" RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Mozilla\Firefox","OverrideFirstRunPage","%txt_Homepage%"
End End
Else,RegWrite,HKLM,0x1,"Tmp_Software\Policies\Mozilla\Firefox\Homepage","StartPage","none" Else,RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Mozilla\Firefox\Homepage","StartPage","none"
// Import Bookmarks // Import Bookmarks
If,ExistFile,%fb_ImportBookmarks%,Begin If,ExistFile,%fb_ImportBookmarks%,Begin
@@ -189,83 +189,83 @@ Else,Begin
ExtractFile,%ScriptFile%,"Config","bookmarks.html","%TargetPrograms%\%ProgramFolder%" ExtractFile,%ScriptFile%,"Config","bookmarks.html","%TargetPrograms%\%ProgramFolder%"
End End
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\Preferences","browser.places.importBookmarksHTML",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\Preferences","browser.places.importBookmarksHTML",1
RegWrite,HKLM,0x1,"Tmp_Software\Policies\Mozilla\Firefox\Preferences","browser.bookmarks.file","%PEPrograms%\%ProgramFolder%\bookmarks.html" RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Mozilla\Firefox\Preferences","browser.bookmarks.file","%PEPrograms%\%ProgramFolder%\bookmarks.html"
// Addons // Addons
If,%cb_AddonuBlockOrgin%,Equal,True,RegWrite,HKLM,0x1,"Tmp_Software\Policies\Mozilla\Firefox\Extensions\Install","1","https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi" If,%cb_AddonuBlockOrgin%,Equal,True,RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Mozilla\Firefox\Extensions\Install","1","https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"
If,%cb_AddonNoScript%,Equal,True,RegWrite,HKLM,0x1,"Tmp_Software\Policies\Mozilla\Firefox\Extensions\Install","2","https://addons.mozilla.org/firefox/downloads/latest/noscript/latest.xpi" If,%cb_AddonNoScript%,Equal,True,RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Mozilla\Firefox\Extensions\Install","2","https://addons.mozilla.org/firefox/downloads/latest/noscript/latest.xpi"
If,%cb_AddonToGoogleTranslate%,Equal,True,RegWrite,HKLM,0x1,"Tmp_Software\Policies\Mozilla\Firefox\Extensions\Install","3","https://addons.mozilla.org/firefox/downloads/latest/to-google-translate/latest.xpi" If,%cb_AddonToGoogleTranslate%,Equal,True,RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Mozilla\Firefox\Extensions\Install","3","https://addons.mozilla.org/firefox/downloads/latest/to-google-translate/latest.xpi"
If,%cb_AdditionalAddon01%,Equal,True,RegWrite,HKLM,0x1,"Tmp_Software\Policies\Mozilla\Firefox\Extensions\Install","4",%txt_AdditionalAddon01% If,%cb_AdditionalAddon01%,Equal,True,RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Mozilla\Firefox\Extensions\Install","4",%txt_AdditionalAddon01%
If,%cb_AdditionalAddon02%,Equal,True,RegWrite,HKLM,0x1,"Tmp_Software\Policies\Mozilla\Firefox\Extensions\Install","5",%txt_AdditionalAddon02% If,%cb_AdditionalAddon02%,Equal,True,RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Mozilla\Firefox\Extensions\Install","5",%txt_AdditionalAddon02%
If,%cb_AdditionalAddon03%,Equal,True,RegWrite,HKLM,0x1,"Tmp_Software\Policies\Mozilla\Firefox\Extensions\Install","6",%txt_AdditionalAddon03% If,%cb_AdditionalAddon03%,Equal,True,RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Mozilla\Firefox\Extensions\Install","6",%txt_AdditionalAddon03%
/////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////
// Other Preferences - Not configured via script interface // Other Preferences - Not configured via script interface
// Always ask where to save files // Always ask where to save files
RegWrite,HKLM,0x1,"Tmp_Software\Policies\Mozilla\Firefox","PromptForDownloadLocation",1 RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Mozilla\Firefox","PromptForDownloadLocation",1
// Disable default browser check // Disable default browser check
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox","DontCheckDefaultBrowse",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox","DontCheckDefaultBrowse",1
// Don't check for Search updates // Don't check for Search updates
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\Preferences","browser.search.update",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\Preferences","browser.search.update",0
// Disable Flash // Disable Flash
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\FlashPlugin","Default",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\FlashPlugin","Default",0
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\FlashPlugin","Locked",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\FlashPlugin","Locked",1
// Don't ask to remember passwords // Don't ask to remember passwords
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox","OfferToSaveLogins",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox","OfferToSaveLogins",0
// Allow Extension updates // Allow Extension updates
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox","ExtensionUpdate",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox","ExtensionUpdate",1
// Disable App updates // Disable App updates
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox","DisableAppUpdate",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox","DisableAppUpdate",1
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\Preferences","app.update.auto",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\Preferences","app.update.auto",0
RegWrite,HKLM,0x1,"Tmp_Software\Policies\Mozilla\Firefox","OverridePostUpdatePag","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Mozilla\Firefox","OverridePostUpdatePag",""
// Disable Telemetry // Disable Telemetry
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox","DisableTelemetry",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox","DisableTelemetry",1
// Disable Reporting // Disable Reporting
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\Preferences","security.ssl.errorReporting.enabled",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\Preferences","security.ssl.errorReporting.enabled",0
// Sanitize // Sanitize
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\SanitizeOnShutdown","Cache",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\SanitizeOnShutdown","Cache",1
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\SanitizeOnShutdown","Cookies",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\SanitizeOnShutdown","Cookies",1
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\SanitizeOnShutdown","Downloads",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\SanitizeOnShutdown","Downloads",1
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\SanitizeOnShutdown","FormData",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\SanitizeOnShutdown","FormData",1
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\SanitizeOnShutdown","History",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\SanitizeOnShutdown","History",0
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\SanitizeOnShutdown","Sessions",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\SanitizeOnShutdown","Sessions",1
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\SanitizeOnShutdown","SiteSettings",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\SanitizeOnShutdown","SiteSettings",1
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\SanitizeOnShutdown","OfflineApps",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\SanitizeOnShutdown","OfflineApps",1
// Disable useless stuff // Disable useless stuff
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox","DisableFeedbackCommands",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox","DisableFeedbackCommands",1
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox","DisableFirefoxScreenshots",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox","DisableFirefoxScreenshots",1
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox","DisableFirefoxAccounts",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox","DisableFirefoxAccounts",1
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox","DisableFirefoxStudies",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox","DisableFirefoxStudies",1
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox","DisablePocket",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox","DisablePocket",1
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox","DisableProfileImport",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox","DisableProfileImport",1
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox","DisableProfileRefresh",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox","DisableProfileRefresh",1
// Cookies // Cookies
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\Cookies","Default",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\Cookies","Default",1
RegWrite,HKLM,0x1,"Tmp_Software\Policies\Mozilla\Firefox\Cookies","AcceptThirdParty","from-visited" RegWrite,HKLM,REG_SZ,"Tmp_Software\Policies\Mozilla\Firefox\Cookies","AcceptThirdParty","from-visited"
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\Cookies","ExpireAtSessionEnd",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\Cookies","ExpireAtSessionEnd",1
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\Cookies","RejectTracker",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\Cookies","RejectTracker",1
// Firefox Home // Firefox Home
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\FirefoxHome","Search",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\FirefoxHome","Search",1
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\FirefoxHome","TopSites",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\FirefoxHome","TopSites",0
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\FirefoxHome","Highlights",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\FirefoxHome","Highlights",0
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\FirefoxHome","Pocket",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\FirefoxHome","Pocket",0
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\FirefoxHome","Snippets",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\FirefoxHome","Snippets",0
RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\FirefoxHome","Locked",1 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Policies\Mozilla\Firefox\FirefoxHome","Locked",1
[#RegisterFileExtensions#] [#RegisterFileExtensions#]
// =============================================================================================================================== // ===============================================================================================================================
@@ -282,89 +282,87 @@ RegWrite,HKLM,0x4,"Tmp_Software\Policies\Mozilla\Firefox\FirefoxHome","Locked",1
Echo,"Configuring Firefox as the Default Browser..." Echo,"Configuring Firefox as the Default Browser..."
// File Associations // File Associations
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.htm","","FirefoxHTML" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.htm","","FirefoxHTML"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.htm\OpenWithProgids","FirefoxHTML","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.htm\OpenWithProgids","FirefoxHTML",""
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.html","","FirefoxHTML" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.html","","FirefoxHTML"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.html\OpenWithProgids","FirefoxHTML","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.html\OpenWithProgids","FirefoxHTML",""
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.shtml","","FirefoxHTML" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.shtml","","FirefoxHTML"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.shtml\OpenWithProgids","FirefoxHTML","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.shtml\OpenWithProgids","FirefoxHTML",""
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.xht","","FirefoxHTML" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.xht","","FirefoxHTML"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.xht\OpenWithProgids","FirefoxHTML","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.xht\OpenWithProgids","FirefoxHTML",""
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.xhtml","","FirefoxHTML" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.xhtml","","FirefoxHTML"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\.xhtml\OpenWithProgids","FirefoxHTML","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\.xhtml\OpenWithProgids","FirefoxHTML",""
// FTP Protocol // FTP Protocol
RegWrite,HKLM,0x1,"Tmp_Software\Classes\ftp","URL Protocol","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\ftp","URL Protocol",""
RegWrite,HKLM,0x1,"Tmp_Software\Classes\ftp","","URL:File Transfer Protocol" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\ftp","","URL:File Transfer Protocol"
RegWrite,HKLM,0x2,"Tmp_Software\Classes\ftp\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,1" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Classes\ftp\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,1"
RegWrite,HKLM,0x2,"Tmp_Software\Classes\ftp\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -osint -url #$q#$p1#$q" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Classes\ftp\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -osint -url #$q#$p1#$q"
// HTTP Protocol // HTTP Protocol
RegWrite,HKLM,0x1,"Tmp_Software\Classes\http","URL Protocol","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\http","URL Protocol",""
RegWrite,HKLM,0x1,"Tmp_Software\Classes\http","","URL:HyperText Transfer Protocol" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\http","","URL:HyperText Transfer Protocol"
RegWrite,HKLM,0x2,"Tmp_Software\Classes\http\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,1" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Classes\http\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,1"
RegWrite,HKLM,0x2,"Tmp_Software\Classes\http\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -osint -url #$q#$p1#$q" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Classes\http\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -osint -url #$q#$p1#$q"
// HTTPS Protocol // HTTPS Protocol
RegWrite,HKLM,0x1,"Tmp_Software\Classes\https","URL Protocol","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\https","URL Protocol",""
RegWrite,HKLM,0x1,"Tmp_Software\Classes\https","","URL:HyperText Transfer Protocol with Privacy" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\https","","URL:HyperText Transfer Protocol with Privacy"
RegWrite,HKLM,0x2,"Tmp_Software\Classes\https\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,1" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Classes\https\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,1"
RegWrite,HKLM,0x2,"Tmp_Software\Classes\https\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -osint -url #$q#$p1#$q" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Classes\https\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -osint -url #$q#$p1#$q"
// HTML File Associations // HTML File Associations
RegWrite,HKLM,0x1,"Tmp_Software\Classes\FirefoxHTML","","Firefox HTML Document" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\FirefoxHTML","","Firefox HTML Document"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\FirefoxHTML","FriendlyTypeName","Firefox HTML Document" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\FirefoxHTML","FriendlyTypeName","Firefox HTML Document"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\FirefoxHTML","URL Protocol","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\FirefoxHTML","URL Protocol",""
RegWrite,HKLM,0x4,"Tmp_Software\Classes\FirefoxHTML","EditFlags",2 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Classes\FirefoxHTML","EditFlags",2
RegWrite,HKLM,0x1,"Tmp_Software\Classes\FirefoxHTML\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,1" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\FirefoxHTML\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,1"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\FirefoxHTML\shell","","open" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\FirefoxHTML\shell","","open"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\FirefoxHTML\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -osint -url #$q#$p1#$q" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\FirefoxHTML\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -osint -url #$q#$p1#$q"
// URL File Associations // URL File Associations
RegWrite,HKLM,0x1,"Tmp_Software\Classes\FirefoxURL","","Firefox URL" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\FirefoxURL","","Firefox URL"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\FirefoxURL","FriendlyTypeName","Firefox URL" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\FirefoxURL","FriendlyTypeName","Firefox URL"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\FirefoxURL","URL Protocol","" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\FirefoxURL","URL Protocol",""
RegWrite,HKLM,0x4,"Tmp_Software\Classes\FirefoxURL","EditFlags",2 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Classes\FirefoxURL","EditFlags",2
RegWrite,HKLM,0x1,"Tmp_Software\Classes\FirefoxURL\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,1" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\FirefoxURL\DefaultIcon","","%PEPrograms%\%ProgramFolder%\%ProgramExe%,1"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\FirefoxURL\shell","","open" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\FirefoxURL\shell","","open"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\FirefoxURL\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -osint -url #$q#$p1#$q" RegWrite,HKLM,REG_SZ,"Tmp_Software\Classes\FirefoxURL\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -osint -url #$q#$p1#$q"
// URL Associations // URL Associations
RegWrite,HKLM,0x2,"Tmp_Software\Classes\InternetShortcut\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -osint -url #$q#$p1#$q" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Classes\InternetShortcut\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -osint -url #$q#$p1#$q"
RegWrite,HKLM,0x2,"Tmp_Software\Classes\Applications\Firefox.exe\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -osint -url #$q#$p1#$q" RegWrite,HKLM,REG_EXPAND_SZ,"Tmp_Software\Classes\Applications\Firefox.exe\shell\open\command","","#$q%PEPrograms%\%ProgramFolder%\%ProgramExe%#$q -osint -url #$q#$p1#$q"
// Open-With Programs List // Open-With Programs List
RegWrite,HKLM,0x4,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","FirefoxHTML_.shtml",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","FirefoxHTML_.shtml",0
RegWrite,HKLM,0x4,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","FirefoxHTML_.xht",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","FirefoxHTML_.xht",0
RegWrite,HKLM,0x4,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","FirefoxHTML_.htm",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","FirefoxHTML_.htm",0
RegWrite,HKLM,0x4,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","FirefoxHTML_.xhtml",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","FirefoxHTML_.xhtml",0
RegWrite,HKLM,0x4,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","FirefoxHTML_.html",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","FirefoxHTML_.html",0
RegWrite,HKLM,0x4,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","FirefoxURL_FTP",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","FirefoxURL_FTP",0
RegWrite,HKLM,0x4,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","FirefoxURL_HTTP",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","FirefoxURL_HTTP",0
RegWrite,HKLM,0x4,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","FirefoxURL_HTTPS",0 RegWrite,HKLM,REG_DWORD,"Tmp_Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts","FirefoxURL_HTTPS",0
// Associations // Associations
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm\UserChoice","ProgId","FirefoxHTML" // Newer Windows UCPD aggressively blocks writing to the offline registry keys (Prohibited Operation), so we have to write them during PE startup.
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\UserChoice","ProgId","FirefoxHTML" // More Info: https://theoven.org/viewtopic.php?p=1957
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.shtml\UserChoice","ProgId","FirefoxHTML"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.xht\UserChoice","ProgId","FirefoxHTML"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.xhtml\UserChoice","ProgId","FirefoxHTML"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.htm\UserChoice","ProgId","FirefoxHTML" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxHTML#$q)"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.html\UserChoice","ProgId","FirefoxHTML" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxHTML#$q)"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.shtml\UserChoice","ProgId","FirefoxHTML" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.shtml\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxHTML#$q)"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.xht\UserChoice","ProgId","FirefoxHTML" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.xht\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxHTML#$q)"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.xhtml\UserChoice","ProgId","FirefoxHTML" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.xhtml\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxHTML#$q)"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Roaming\OpenWith\UrlAssociations\FTP\UserChoice","ProgId","FirefoxURL" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.htm\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxHTML#$q)"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Roaming\OpenWith\UrlAssociations\http\UserChoice","ProgId","FirefoxURL" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.html\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxHTML#$q)"
RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Roaming\OpenWith\UrlAssociations\https\UserChoice","ProgId","FirefoxURL" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.shtml\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxHTML#$q)"
AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.xht\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxHTML#$q)"
AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.xhtml\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxHTML#$q)"
//RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Shell\Associations\UrlAssociations\FTP\UserChoice","ProgId","FirefoxURL" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Roaming\OpenWith\UrlAssociations\FTP\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxURL#$q)"
//RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice","ProgId","FirefoxURL" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Roaming\OpenWith\UrlAssociations\http\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxURL#$q)"
//RegWrite,HKLM,0x1,"Tmp_Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice","ProgId","FirefoxURL" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Roaming\OpenWith\UrlAssociations\https\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxURL#$q)"
// Newer Windows aggressively blocks writing to the offline registry keys (Prohibited Operation), so we have to write them during PE startup.
AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\FTP\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxURL#$q)" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\FTP\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxURL#$q)"
AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxURL#$q)" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxURL#$q)"
AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxURL#$q)" AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$qFirefoxURL#$q)"