OSDN Git Service

PATCH: [ 1201945 ] Localization of ShellExtension.dll
[winmerge-jp/winmerge-jp.git] / ShellExtension / Register.bat
1 @echo off
2 : Register.bat
3 :
4 : ShellExtension.dll is a so called 'Shell Extension'
5 : allowing user to start WinMerge from explorer's context
6 : menu to compare selected files/directories.
7 : However this dll file must be registered for
8 : Windows before it works.
9 :
10 : ShellExtension.dll can be unregistered with command:
11 : "Register.bat /U"
12
13 IF "%1" == "/u" Goto Uninstall
14 IF "%1" == "/U" Goto Uninstall
15
16 Echo Registering ShellExtension.dll...
17 if "%OS%" == "" RegSvr32 ShellExtension.dll
18 if "%OS%" == "Windows_NT" RegSvr32 ShellExtensionU.dll
19
20 Goto End
21
22 :Uninstall
23 Echo UnRegistering ShellExtension.dll...
24 if "%OS%" == "" RegSvr32 /u ShellExtension.dll
25 if "%OS%" == "Windows_NT" RegSvr32 /u ShellExtensionU.dll
26
27 :End
28 CLS