[ttssh2-commit] [10516] インストーラで選択しなかった関連付けを削除するコードを追加

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2023年 1月 18日 (水) 22:30:25 JST


Revision: 10516
          https://osdn.net/projects/ttssh2/scm/svn/commits/10516
Author:   nmaya
Date:     2023-01-18 22:30:24 +0900 (Wed, 18 Jan 2023)
Log Message:
-----------
インストーラで選択しなかった関連付けを削除するコードを追加

- ssh://
- slogin://
- .tty ファイル

ticket #46541

Ticket Links:
------------
    https://osdn.net/projects/ttssh2/tracker/detail/46541

Modified Paths:
--------------
    branches/4-stable/installer/teraterm.iss

-------------- next part --------------
Modified: branches/4-stable/installer/teraterm.iss
===================================================================
--- branches/4-stable/installer/teraterm.iss	2023-01-18 13:30:13 UTC (rev 10515)
+++ branches/4-stable/installer/teraterm.iss	2023-01-18 13:30:24 UTC (rev 10516)
@@ -866,6 +866,7 @@
 
         if not IsTaskSelected('telnetassoc') then
         begin;
+          // \x83f\x83t\x83H\x83\x8B\x83g\x82\xC5 telnet \x83v\x83\x8D\x83g\x83R\x83\x8B\x82Ɋ֘A\x95t\x82\xAF\x82\xAA\x82\xA0\x82\xE9 Windows \x83o\x81[\x83W\x83\x87\x83\x93\x82\xAA\x82\xA0\x82邽\x82߁ATera Term \x82ւ̊֘A\x95t\x82\xAF\x82\xBE\x82\xAF\x82\xF0\x8D폜\x82\xB7\x82\xE9
           RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\telnet\shell\Open with Tera Term');
           RegDeleteValue(HKEY_CURRENT_USER, 'Software\Classes\telnet\shell', '');
           RegDeleteKeyIncludingSubkeys(HKEY_CLASSES_ROOT, 'telnet\shell\Open with Tera Term');
@@ -872,6 +873,23 @@
           RegDeleteValue(HKEY_CLASSES_ROOT, 'telnet\shell', '');
         end;
 
+        if not IsTaskSelected('sshassoc') then
+        begin;
+          // \x83f\x83t\x83H\x83\x8B\x83g\x82̊֘A\x95t\x82\xAF\x82\xAA\x82Ȃ\xA2\x82̂ŁA\x83v\x83\x8D\x83g\x83R\x83\x8B\x82\xB2\x82ƍ폜
+          RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\ssh');
+          RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\slogin');
+          RegDeleteKeyIncludingSubkeys(HKEY_CLASSES_ROOT, 'ssh');
+          RegDeleteKeyIncludingSubkeys(HKEY_CLASSES_ROOT, 'slogin');
+        end;
+
+        if not IsTaskSelected('ttyplayassoc') then
+        begin;
+          RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\.tty');
+          RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\Classes\TTYRecordFile');
+          RegDeleteKeyIncludingSubkeys(HKEY_CLASSES_ROOT, '.tty');
+          RegDeleteKeyIncludingSubkeys(HKEY_CLASSES_ROOT, 'TTYRecordFile');
+        end;
+
         SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, 0, 0);
 
       end; // ssPostInstall


ttssh2-commit メーリングリストの案内
Back to archive index