addhaloka
Gold Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Код: @echo off cls setlocal %~d0 cd "%~dp0" chcp | find "1252" > nul if errorlevel 1 chcp 1252 > nul :_main title Меню скрипта инсталляции/деинсталляции Notepad2 cls echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo [1] - Установить/переустановить Notepad2 echo [2] - Удалить записи о Notepad2 из реестра echo. echo. set _choice= set /p _choice= Нажмите [ENTER] для отмены и выхода или введите вариант [1/2] : if "%_choice%" == "" goto _quit if "%_choice%" == "1" goto _inst if "%_choice%" == "2" goto _uninst goto _main :_inst title Установка Notepad2 cls reg add "HKCR\.cfg" /ve /d "inifile" /f > nul reg add "HKCR\.ini" /ve /d "inifile" /f > nul reg add "HKCR\.inf" /ve /d "inffile" /f > nul reg add "HKCR\.reg" /ve /d "regfile" /f > nul reg add "HKCR\.log" /ve /d "notepad_file" /f > nul reg add "HKCR\.txt" /ve /d "notepad_file" /f > nul reg add "HKCR\batfile\shell\edit\command" /ve /d \""%cd%\Notepad2.exe\" \"%%1"" /f > nul reg add "HKCR\cmdfile\shell\edit\command" /ve /d \""%cd%\Notepad2.exe\" \"%%1"" /f > nul reg add "HKCR\htmfile\shell\edit\command" /ve /d \""%cd%\Notepad2.exe\" \"%%1"" /f > nul reg add "HKCR\htmlfile\shell\edit\command" /ve /d \""%cd%\Notepad2.exe\" \"%%1"" /f > nul reg add "HKCR\inffile\shell\open\command" /ve /d \""%cd%\Notepad2.exe\" \"%%1"" /f > nul reg add "HKCR\inifile\shell\open\command" /ve /d \""%cd%\Notepad2.exe\" \"%%1"" /f > nul reg add "HKCR\regfile\shell\edit\command" /ve /d \""%cd%\Notepad2.exe\" \"%%1"" /f > nul reg add "HKCR\Text.File\shell\open\command" /ve /d \""%cd%\Notepad2.exe\" \"%%1"" /f > nul reg add "HKCR\txtfile\shell\open\command" /ve /d \""%cd%\Notepad2.exe\" \"%%1"" /f > nul reg add "HKCR\xlsfile\shell\edit\command" /ve /d \""%cd%\Notepad2.exe\" \"%%1"" /f > nul reg add "HKCR\xmlfile\shell\edit\command" /ve /d \""%cd%\Notepad2.exe\" \"%%1"" /f > nul reg add "HKCR\notepad_file\shell\Open\command" /ve /d \""%cd%\Notepad2.exe\" \"%%1"" /f > nul reg add "HKCR\notepad_file\shell\Open\ddeexec\Application" /ve /d Notepad2 /f > nul reg add "HKCR\notepad_file\shell\Open\ddeexec\Topic" /ve /d System /f > nul reg query "HKCR\FirefoxHTML" > nul if not errorlevel 1 reg add "HKCR\FirefoxHTML\shell\edit\command" /ve /d \""%cd%\Notepad2.exe\" \"%%1"" /f > nul cls echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo Установка Notepad2 завершена. Нажмите любую клавишу для выхода ... pause > nul goto _quit :_uninst title Удаление Notepad2 cls reg add "HKCR\.cfg" /ve /d "inifile" /f > nul reg add "HKCR\.ini" /ve /d "inifile" /f > nul reg add "HKCR\.inf" /ve /d "inffile" /f > nul reg add "HKCR\.reg" /ve /d "regfile" /f > nul reg add "HKCR\.log" /ve /d "notepad_file" /f > nul reg add "HKCR\.txt" /ve /d "notepad_file" /f > nul reg add "HKCR\batfile\shell\edit\command" /ve /d "notepad.exe %%1" /f > nul reg add "HKCR\cmdfile\shell\edit\command" /ve /d "notepad.exe %%1" /f > nul reg add "HKCR\htmfile\shell\edit\command" /ve /d "notepad.exe %%1" /f > nul reg add "HKCR\htmlfile\shell\edit\command" /ve /d "notepad.exe %%1" /f > nul reg add "HKCR\inffile\shell\open\command" /ve /d "notepad.exe %%1" /f > nul reg add "HKCR\inifile\shell\open\command" /ve /d "notepad.exe %%1" /f > nul reg add "HKCR\regfile\shell\edit\command" /ve /d "notepad.exe %%1" /f > nul reg add "HKCR\Text.File\shell\open\command" /ve /d "notepad.exe %%1" /f > nul reg add "HKCR\txtfile\shell\open\command" /ve /d "notepad.exe %%1" /f > nul reg add "HKCR\xlsfile\shell\edit\command" /ve /d "notepad.exe %%1" /f > nul reg add "HKCR\xmlfile\shell\edit\command" /ve /d "notepad.exe %%1" /f > nul reg add "HKCR\notepad_file\shell\Open\command" /ve /d "notepad.exe %%1" /f > nul reg add "HKCR\notepad_file\shell\Open\ddeexec\Application" /ve /d notepad /f > nul reg add "HKCR\notepad_file\shell\Open\ddeexec\Topic" /ve /d System /f > nul reg query "HKCR\FirefoxHTML" > nul if not errorlevel 1 reg add "HKCR\FirefoxHTML\shell\edit\command" /ve /d "notepad.exe %%1" /f > nul cls echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo. echo Удаление Notepad2 завершено. Нажмите любую клавишу для выхода ... pause > nul goto _quit :_quit endlocal exit |
| Всего записей: 7432 | Зарегистр. 13-11-2010 | Отправлено: 15:41 23-04-2011 | Исправлено: addhaloka, 15:56 23-04-2011 |
|