cd /d "%~dp0.."
Set "XD=%CD%"
if "%XD:~-1%" == "\" Set "XD=%XD:~0,-1%"
Set "XD=%XD:&=^&%"
reg add "HKLM\SOFTWARE\Classes\CLSID\{2DF394BA-1955-4a52-900E-303836135F67}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{3595AEA4-FA1C-498A-8EEA-5F2366D16705}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopushlp.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{3CF9ECE0-1A9F-11d2-8C73-00C06C2005DE}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{59CA7BDD-15EA-4B41-8ABC-F1967657B7BC}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopushlp.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{75C235EA-9D69-430B-92DD-C04B5BFA48A4}" /f /v "LocalizedString" /t REG_SZ /d "@%CD%\dopushlp.dll,-101" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{75C235EA-9D69-430B-92DD-C04B5BFA48A4}\Elevation" /f /v "IconReference" /t REG_SZ /d "@%CD%\dopushlp.dll,-100" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{75C235EA-9D69-430B-92DD-C04B5BFA48A4}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopushlp.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{B9DD4945-1BED-4cb7-994C-F40B72B7725A}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{BBD5F00E-26A6-4fb2-BAE1-31543C0BEA47}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{BD455886-C07F-4DB5-B414-18B1FEFA6117}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopushlp.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{D2FCA36D-93CD-46f2-8324-6308F6E31B53}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{DB654B0D-CB3A-4BFA-A8CC-812C5E48D5E0}\InProcServer32" /f /ve /t REG_SZ /d "%CD%\dopushlp.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{E9FE4040-3C93-11d4-8006-00201860E88A}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{F326FD86-20F3-4476-83C8-BCD2C7D9B5D6}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopushlp.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{F73F1A9D-C599-465B-A679-287A604077C8}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopushlp.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{F85D7E1E-9662-4b38-B1AE-3CF1E9581A3C}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\OpusButtonFile\Shell\Open\Command" /f /ve /t REG_SZ /d "\"%XD%\dopusrt.exe\" %%1" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\OpusCertificateFile\Shell\Open\Command" /f /ve /t REG_SZ /d "\"%XD%\dopusrt.exe\" %%1" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\OpusCommandFile\Shell\Open\Command" /f /ve /t REG_SZ /d "\"%XD%\dopusrt.exe\" %%1" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\OpusListerTheme\Shell\Open\Command" /f /ve /t REG_SZ /d "\"%XD%\dopusrt.exe\" /cmd Prefs THEMEIMPORT \"%%1\"" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\opusprefs\DefaultIcon" /f /ve /t REG_SZ /d "\"%XD%\dopusrt.exe\",0" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\opusprefs\Shell\Open\Command" /f /ve /t REG_SZ /d "\"%XD%\dopusrt.exe\" /prefs \"%%1\"" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\OpusScriptInstallPackage\Shell\Open\Command" /f /ve /t REG_SZ /d "\"%XD%\dopusrt.exe\" /cmd Prefs INSTALLSCRIPT \"%%1\"" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\OpusScriptPackage\Shell\Open\Command" /f /ve /t REG_SZ /d "\"%XD%\dopusrt.exe\" /cmd Prefs INSTALLSCRIPT \"%%1\"" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\TypeLib\{6D9494D7-730C-4F62-8FB0-30C55B70D092}\1.0\0\win32" /f /ve /t REG_SZ /d "%CD%\dopuslib32.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\TypeLib\{6D9494D7-730C-4F62-8FB0-30C55B70D092}\1.0\0\win64" /f /ve /t REG_SZ /d "%CD%\dopushlp.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\TypeLib\{6D9494D7-730C-4F62-8FB0-30C55B70D092}\1.0\HELPDIR" /f /ve /t REG_SZ /d "%CD%" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\WOW6432Node\CLSID\{2DF394BA-1955-4a52-900E-303836135F67}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib32.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\WOW6432Node\CLSID\{2DF394BA-1955-4a52-900E-303836135F67}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\WOW6432Node\CLSID\{3CF9ECE0-1A9F-11d2-8C73-00C06C2005DE}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib32.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\WOW6432Node\CLSID\{3CF9ECE0-1A9F-11d2-8C73-00C06C2005DE}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\WOW6432Node\CLSID\{B9DD4945-1BED-4cb7-994C-F40B72B7725A}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib32.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\WOW6432Node\CLSID\{B9DD4945-1BED-4cb7-994C-F40B72B7725A}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\WOW6432Node\CLSID\{BBD5F00E-26A6-4fb2-BAE1-31543C0BEA47}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib32.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\WOW6432Node\CLSID\{BBD5F00E-26A6-4fb2-BAE1-31543C0BEA47}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\WOW6432Node\CLSID\{D2FCA36D-93CD-46f2-8324-6308F6E31B53}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib32.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\WOW6432Node\CLSID\{D2FCA36D-93CD-46f2-8324-6308F6E31B53}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\WOW6432Node\CLSID\{E9FE4040-3C93-11d4-8006-00201860E88A}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib32.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\WOW6432Node\CLSID\{E9FE4040-3C93-11d4-8006-00201860E88A}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\WOW6432Node\CLSID\{F85D7E1E-9662-4b38-B1AE-3CF1E9581A3C}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib32.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\WOW6432Node\CLSID\{F85D7E1E-9662-4b38-B1AE-3CF1E9581A3C}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Microsoft\Internet Explorer\Low Rights\DragDrop\{EE0F1650-117B-4075-A78C-EA86C85710B3}" /f /v "AppPath" /t REG_SZ /d "%CD%" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\DOpus.exe" /f /ve /t REG_SZ /d "%CD%\dopus.exe" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\DOpus.exe" /f /v "Path" /t REG_SZ /d "%CD%" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\OpusOpenFolder" /f /v "DefaultIcon" /t REG_SZ /d "\"%XD%\dopusrt.exe\",0" 1>nul 2>nul
reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Internet Explorer\Low Rights\DragDrop\{EE0F1650-117B-4075-A78C-EA86C85710B3}" /f /v "AppPath" /t REG_SZ /d "%CD%" 1>nul 2>nul
reg add "HKCU\SOFTWARE\Classes\coll\DefaultIcon" /f /ve /t REG_SZ /d "%CD%\dopus.exe,-187" 1>nul 2>nul
reg add "HKCU\SOFTWARE\Classes\coll\Shell\Open\Command" /f /ve /t REG_SZ /d "\"%XD%\dopusrt.exe\" /nodde /idlist,,%%1" 1>nul 2>nul
reg add "HKCU\SOFTWARE\Classes\Folder\Shell\dopus_openinexplorer\Command" /f /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\Explorer.exe" 1>nul 2>nul
reg add "HKCU\SOFTWARE\Classes\Folder\Shell\Openindopus\Command" /f /ve /t REG_SZ /d "\"%XD%\dopusrt.exe\" /nodde /idlist,%%I,%%L" 1>nul 2>nul
reg add "HKCU\SOFTWARE\Classes\ftp\Shell\dopus_openinexplorer\Command" /f /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\Explorer.exe" 1>nul 2>nul
reg add "HKCU\SOFTWARE\Classes\ftp\Shell\Openindopus\Command" /f /ve /t REG_SZ /d "\"%XD%\dopusrt.exe\" /open %%L" 1>nul 2>nul
reg add "HKCU\SOFTWARE\Classes\OpusZip\DefaultIcon" /f /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\system32\zipfldr.dll" 1>nul 2>nul
reg add "HKCU\SOFTWARE\Classes\OpusZip\Shell\Open\Command" /f /ve /t REG_SZ /d "\"%XD%\dopusrt.exe\" /acmd go \"%%1\" existinglister new" 1>nul 2>nul
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /f /v "Directory Opus Desktop Dblclk" /t REG_SZ /d "\"%XD%\dopusrt.exe\" /dblclk" 1>nul 2>nul
reg add "HKCU\SOFTWARE\Microsoft\Windows\ShellNoRoam\MUICache" /f /v "%CD%\d8viewer.exe" /t REG_SZ /d "Directory Opus ²é¿´Æ÷" 1>nul 2>nul
reg add "HKCU\SOFTWARE\Microsoft\Windows\ShellNoRoam\MUICache" /f /v "%CD%\dopusrt.exe" /t REG_SZ /d "Directory Opus Æô¶¯Æ÷" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{00AFAD3D-4657-4B35-800A-0CB1ADB1A6A0}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{059B2F37-DF25-498B-80CA-5F7584EAF532}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{06D4B8A0-5232-48CF-838F-5C1CFE5FE7AE}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{1A7BF8CF-ADAE-4734-986D-2534B298507D}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{1D45A4F6-6B72-4539-88DE-927906F3A48A}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{2940C701-32DC-46E1-8104-F86734D38937}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{4F0C80ED-E52D-46B0-B062-57DFF5D2E30E}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{65A8F40E-8276-4648-BB2C-AB5DC21C0B87}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{7E6B951D-01A8-438A-A443-4BCC4025306A}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{8564E826-9FA8-4B38-9998-61484313A6F9}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{85EB016B-1AE6-49F5-8081-547BBDB40BFA}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{8B26ED80-380A-4D37-B97F-15E224CF5F33}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{947F37DF-DE31-4248-B378-03DA73F90EE6}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{B2610566-776C-4849-B599-96D53AF34E07}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{C157EE50-7A84-4443-B1DD-A75C6D8AA6B1}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{D7A4A61A-F89A-4380-9BC5-0B8E548EEF7F}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{DB5C2A3E-3E4C-4D8C-946A-E4F275034F6C}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{E50F7A90-D56E-444E-86A5-ECC49B89B080}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{F35D3F59-EDC8-4DDB-96A1-472211370BBA}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{FE121518-FF3D-4FD2-A141-63635F53C610}\InprocServer32" /f /ve /t REG_SZ /d "%CD%\dopuslib.dll" 1>nul 2>nul
Exit /b