Перейти из форума на сайт.

НовостиФайловые архивы
ПоискАктивные темыТоп лист
ПравилаКто в on-line?
Вход Забыли пароль? Первый раз на этом сайте? Регистрация
Компьютерный форум Ru.Board » Компьютеры » Программы » Mozilla Firefox (часть 11)

Модерирует : gyra, Maz

batva (22-11-2011 15:23): Mozilla Firefox! (часть 12)  Версия для печати • ПодписатьсяДобавить в закладки
На первую страницук этому сообщениюк последнему сообщению

   

addhaloka



Gold Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору

Код:
Name "Portable Firefox"
 
SetCompressor /SOLID lzma
!include "Registry.nsh"
!include "MUI.nsh"
!define MUI_LANGDLL_ALLLANGUAGES
!insertmacro MUI_LANGUAGE "Russian"
 
OutFile FF-SetDefault.exe
CRCCheck off
SilentInstall silent
Icon firefox.ico
RequestExecutionLevel highest
 
 
Section
GetFullPathName /SHORT "$8" "$EXEDIR\Firefox\Firefox.exe"
GetFullPathName /SHORT "$9" "$EXEDIR\Profile"
 ${If} ${Cmd} `MessageBox MB_YESNO "Назначить браузером по умолчанию портативную версию Firefox из этой папки?" IDYES`
 
     ${registry::DeleteKey} "HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec\ifExec" $R0
    ${registry::DeleteKey} "HKEY_LOCAL_MACHINE\Software\Classes\ftp\shell\open\ddeexec\ifExec" $R0
 
    ${registry::Write} 'HKEY_CLASSES_ROOT\.htm' '' 'FirefoxHTML' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\.html' '' 'FirefoxHTML' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\.shtml' '' 'FirefoxHTML' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\.xht' '' 'FirefoxHTML' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\.xhtml' '' 'FirefoxHTML' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\FirefoxHTML' '' 'Firefox Document' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\FirefoxHTML' 'FriendlyTypeName' 'Firefox Document' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\FirefoxURL' '' 'Firefox URL' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\FirefoxURL' 'FriendlyTypeName' 'Firefox URL' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\FirefoxURL' 'EditFlags' '0x00000002' 'REG_DWORD' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\FirefoxURL' 'URL Protocol' '' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\.htm' '' 'FirefoxHTML' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\.html' '' 'FirefoxHTML' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\.shtml' '' 'FirefoxHTML' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\.xht' '' 'FirefoxHTML' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\.xhtml' '' 'FirefoxHTML' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\FirefoxHTML' '' 'Firefox Document' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\FirefoxHTML' 'FriendlyTypeName' 'Firefox Document' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\FirefoxURL' '' 'Firefox URL' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\FirefoxURL' 'FriendlyTypeName' 'Firefox URL' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\FirefoxURL' 'EditFlags' '0x00000002' 'REG_DWORD' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\FirefoxURL' 'URL Protocol' '' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_CLASSES_ROOT\ftp\DefaultIcon' '' '"$8",1' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\http\DefaultIcon' '' '"$8",1' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\https\DefaultIcon' '' '"$8",1' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\FirefoxHTML\DefaultIcon' '' '"$8",1' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\FirefoxURL\DefaultIcon' '' '"$8",1' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\ftp\DefaultIcon' '' '"$8",1' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\http\DefaultIcon' '' '"$8",1' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\https\DefaultIcon' '' '"$8",1' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\FirefoxHTML\DefaultIcon' '' '"$8",1' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\FirefoxURL\DefaultIcon' '' '"$8",1' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\ftp\DefaultIcon' '' '"$8",1' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\HTTP\DefaultIcon' '' '"$8",1' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\https\DefaultIcon' '' '"$8",1' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\FirefoxHTML\DefaultIcon' '' '"$8",1' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\FirefoxURL\DefaultIcon' '' '"$8",1' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_CLASSES_ROOT\ftp\shell\open\command' '' '"$8" -profile "$9" -requestPending -url "%1"' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\http\shell\open\command' '' '"$8" -profile "$9" -requestPending -url "%1"' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\https\shell\open\command' '' '"$8" -profile "$9" -requestPending -url "%1"' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\command' '' '"$8" -profile "$9" -requestPending -url "%1"' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\FirefoxURL\shell\open\command' '' '"$8" -profile "$9" -requestPending -url "%1"' 'REG_SZ' $R0
    
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\ftp\shell\open\command' '' '"$8" -profile "$9" -requestPending -url "%1"' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\http\shell\open\command' '' '"$8" -profile "$9" -requestPending -url "%1"' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\https\shell\open\command' '' '"$8" -profile "$9" -requestPending -url "%1"' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\FirefoxHTML\shell\open\command' '' '"$8" -profile "$9" -requestPending -url "%1"' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\FirefoxURL\shell\open\command' '' '"$8" -profile "$9" -requestPending -url "%1"' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\ftp\shell\open\command' '' '"$8" -profile "$9" -requestPending -url "%1"' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\HTTP\shell\open\command' '' '"$8" -profile "$9" -requestPending -url "%1"' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\https\shell\open\command' '' '"$8" -profile "$9" -requestPending -url "%1"' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\FirefoxHTML\shell\open\command' '' '"$8" -profile "$9" -requestPending -url "%1"' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\FirefoxURL\shell\open\command' '' '"$8" -profile "$9" -requestPending -url "%1"' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec' '' '"%1",,0,0,,,,' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\http\shell\open\ddeexec' '' '"%1",,0,0,,,,' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\https\shell\open\ddeexec' '' '"%1",,0,0,,,,' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\ddeexec' '' '"%1",,0,0,,,,' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\ddeexec' 'NoActivateHandler' '' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\ddeexec\Topic' '' 'WWW_OpenURL' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\FirefoxURL\shell\open\ddeexec' '' '"%1",,0,0,,,,' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\FirefoxURL\shell\open\ddeexec' 'NoActivateHandler' '' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\FirefoxURL\shell\open\ddeexec\Topic' '' 'WWW_OpenURL' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\ftp\shell\open\ddeexec' '' '"%1",,0,0,,,,' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\http\shell\open\ddeexec' '' '"%1",,0,0,,,,' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\https\shell\open\ddeexec' '' '"%1",,0,0,,,,' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\FirefoxHTML\shell\open\ddeexec' '' '"%1",,0,0,,,,' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\FirefoxHTML\shell\open\ddeexec' 'NoActivateHandler' '' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\FirefoxHTML\shell\open\ddeexec\Topic' '' 'WWW_OpenURL' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\FirefoxURL\shell\open\ddeexec' '' '"%1",,0,0,,,,' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\FirefoxURL\shell\open\ddeexec' 'NoActivateHandler' '' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\FirefoxURL\shell\open\ddeexec\Topic' '' 'WWW_OpenURL' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\ftp\shell\open\ddeexec' '' '"%1",,0,0,,,,' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\HTTP\shell\open\ddeexec' '' '"%1",,0,0,,,,' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\https\shell\open\ddeexec' '' '"%1",,0,0,,,,' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\FirefoxHTML\shell\open\ddeexec' '' '"%1",,0,0,,,,' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\FirefoxURL\shell\open\ddeexec' '' '"%1",,0,0,,,,' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec\Application' '' 'Firefox' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\http\shell\open\ddeexec\Application' '' 'Firefox' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\https\shell\open\ddeexec\Application' '' 'Firefox' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\ddeexec\Application' '' 'Firefox' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CLASSES_ROOT\FirefoxURL\shell\open\ddeexec\Application' '' 'Firefox' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\ftp\shell\open\ddeexec\Application' '' 'Firefox' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\http\shell\open\ddeexec\Application' '' 'Firefox' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\https\shell\open\ddeexec\Application' '' 'Firefox' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\FirefoxHTML\shell\open\ddeexec\Application' '' 'Firefox' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Classes\FirefoxURL\shell\open\ddeexec\Application' '' 'Firefox' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\ftp\shell\open\ddeexec\Application' '' 'Firefox' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\HTTP\shell\open\ddeexec\Application' '' 'Firefox' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\https\shell\open\ddeexec\Application' '' 'Firefox' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\FirefoxHTML\shell\open\ddeexec\Application' '' 'Firefox' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Classes\FirefoxURL\shell\open\ddeexec\Application' '' 'Firefox' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet\firefox.exe' '' 'Mozilla Firefox' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet\firefox.exe\Capabilities' 'ApplicationIcon' '"$8",0' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet\firefox.exe\Capabilities' 'ApplicationName' 'Firefox' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet\firefox.exe\Capabilities\FileAssociations' '.htm' 'FirefoxHTML' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet\firefox.exe\Capabilities\FileAssociations' '.html' 'FirefoxHTML' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet\firefox.exe\Capabilities\FileAssociations' '.shtml' 'FirefoxHTML' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet\firefox.exe\Capabilities\FileAssociations' '.xht' 'FirefoxHTML' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet\firefox.exe\Capabilities\FileAssociations' '.xhtml' 'FirefoxHTML' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet\firefox.exe\Capabilities\StartMenu' 'StartMenuInternet' 'FIREFOX.EXE' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet\firefox.exe\Capabilities\URLAssociations' 'ftp' 'FirefoxURL' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet\firefox.exe\Capabilities\URLAssociations' 'http' 'FirefoxURL' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet\firefox.exe\Capabilities\URLAssociations' 'https' 'FirefoxURL' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet\firefox.exe\DefaultIcon' '' '"$8",0' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_LOCAL_MACHINE\Software\RegisteredApplications' 'Firefox' 'Software\Clients\StartMenuInternet\FIREFOX.EXE\Capabilities' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet' '' 'FIREFOX.EXE' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm\UserChoice' 'Progid' 'FirefoxHTML' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\UserChoice' 'Progid' 'FirefoxHTML' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.shtml\UserChoice' 'Progid' 'FirefoxHTML' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.xht\UserChoice' 'Progid' 'FirefoxHTML' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.xhtml\UserChoice' 'Progid' 'FirefoxHTML' 'REG_SZ' $R0
 
    ${registry::Write} 'HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\ftp\UserChoice' 'Progid' 'FirefoxURL' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice' 'Progid' 'FirefoxURL' 'REG_SZ' $R0
    ${registry::Write} 'HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice' 'Progid' 'FirefoxURL' 'REG_SZ' $R0
 
    ${registry::Unload}
 ${EndIf}
 ${If} ${Cmd} `MessageBox MB_YESNO "Создать на рабочем столе ярлык для портативной версии Firefox из этой папки?" IDYES`
 SetOutPath "$EXEDIR\Firefox"
  CreateShortCut '$DESKTOP\Firefox Portable.lnk' '$EXEDIR\Firefox\firefox.exe' '-profile "$EXEDIR\Profile"' '$EXEDIR\Firefox\firefox.exe' 0
 ${EndIf}
SectionEnd

Всего записей: 7432 | Зарегистр. 13-11-2010 | Отправлено: 14:33 09-07-2011
   

На первую страницук этому сообщениюк последнему сообщению

Компьютерный форум Ru.Board » Компьютеры » Программы » Mozilla Firefox (часть 11)
batva (22-11-2011 15:23): Mozilla Firefox! (часть 12)


Реклама на форуме Ru.Board.

Powered by Ikonboard "v2.1.7b" © 2000 Ikonboard.com
Modified by Ru.B0ard
© Ru.B0ard 2000-2024

BitCoin: 1NGG1chHtUvrtEqjeerQCKDMUi6S6CG4iC

Рейтинг.ru