File association fails in Win XP; with workaround
Posted: Mon Feb 14, 2005 11:47 pm
File associations doesn't work
(added 2/22/05: This problem occurred for user without administrator privilege; user with admin privilege was able to use associations OK.)
After installing TextPad 4.7.3 under Windows XP service pack 2, I found that any file association entered (in Configure, Preferences, Associated Files dialog) disappears after the dialog closes, and files do not become associated with TextPad in Windows Explorer. I do not have full administrative rights on this machine, so the problem may be related to that, but I doubt it. (Several other posts mentioned a similar problem; but I suppose if it were widespread, there would probably be a deluge of such posts.)
One workaround is to use Windows Explorer, Tools, Folder Options to associate an extension file with TextPad; that creates an action for Explorer, allowing you to double-click the file to open in TextPad. But there will be no corresponding entry or file description in TextPad's own file association dialogue, and also, for me the icon was not changed to that of TextPad.
A more complete workaround is to install the registry file below. This does what TextPad's file association dialog is supposed to. Paste the lines between the BEGIN and END lines (including the conclusing empty line) into a separate plain ASCII text file, change all the "aaa"'s and the "aaa type description" to the extension and description you want to associate, then save the file with a ".reg" extension. To install, double-click in Windows Explorer, or right-click and select Merge.
Note 1: It's always a good idea to back up your registry before making any such changes!!
Note 2: If ".aaa" is already associated with some other program, then change its TextPad Associations entry so it points to the previous association. E.g. if ".aaa" was previously associated with NotePad, its existing Registry entry will be "txtfile". So, instead of:
".aaa"=""
one would use:
".aaa"="txtfile"
under the HKCU\Software\Helios\TextPad 4\Associations branch.
Note 3: The same registry file should probably work under other windows versions, but e.g., under Windows 98 the first line must be "REGEDIT4".
====== BEGIN Windows XP .reg file to assoc. .aaa w/ TextPad =====
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.aaa]
@="TextPad.aaa"
[HKEY_CURRENT_USER\Software\Helios\TextPad 4\Associations]
".aaa"=""
[HKEY_CLASSES_ROOT\TextPad.aaa]
@="aaa type description"
[HKEY_CLASSES_ROOT\TextPad.aaa\DefaultIcon]
@="\"C:\\Program Files\\TextPad 4\\TextPad.exe\",1"
[HKEY_CLASSES_ROOT\TextPad.aaa\shell]
@=""
[HKEY_CLASSES_ROOT\TextPad.aaa\shell\open]
@=""
[HKEY_CLASSES_ROOT\TextPad.aaa\shell\open\command]
@="\"C:\\Program Files\\TextPad 4\\TextPad.exe\" -s"
[HKEY_CLASSES_ROOT\TextPad.aaa\shell\open\ddeexec]
@="[open(\"%1\")]"
[HKEY_CLASSES_ROOT\TextPad.aaa\shell\open\ddeexec\application]
@="TextPad"
[HKEY_CLASSES_ROOT\TextPad.aaa\shell\open\ddeexec\topic]
@="system"
[HKEY_CLASSES_ROOT\TextPad.aaa\shell\print]
[HKEY_CLASSES_ROOT\TextPad.aaa\shell\print\command]
@="\"C:\\Program Files\\TextPad 4\\TextPad.exe\" -s -p \"%1\""
[HKEY_CLASSES_ROOT\TextPad.aaa\shell\printto]
[HKEY_CLASSES_ROOT\TextPad.aaa\shell\printto\command]
@="\"C:\\Program Files\\TextPad 4\\TextPad.exe\" -s -pt \"%1\" \"%2\" \"%3\" \"%4\""
====== END WinXP .reg file - note last empty line =====
(added 2/22/05: This problem occurred for user without administrator privilege; user with admin privilege was able to use associations OK.)
After installing TextPad 4.7.3 under Windows XP service pack 2, I found that any file association entered (in Configure, Preferences, Associated Files dialog) disappears after the dialog closes, and files do not become associated with TextPad in Windows Explorer. I do not have full administrative rights on this machine, so the problem may be related to that, but I doubt it. (Several other posts mentioned a similar problem; but I suppose if it were widespread, there would probably be a deluge of such posts.)
One workaround is to use Windows Explorer, Tools, Folder Options to associate an extension file with TextPad; that creates an action for Explorer, allowing you to double-click the file to open in TextPad. But there will be no corresponding entry or file description in TextPad's own file association dialogue, and also, for me the icon was not changed to that of TextPad.
A more complete workaround is to install the registry file below. This does what TextPad's file association dialog is supposed to. Paste the lines between the BEGIN and END lines (including the conclusing empty line) into a separate plain ASCII text file, change all the "aaa"'s and the "aaa type description" to the extension and description you want to associate, then save the file with a ".reg" extension. To install, double-click in Windows Explorer, or right-click and select Merge.
Note 1: It's always a good idea to back up your registry before making any such changes!!
Note 2: If ".aaa" is already associated with some other program, then change its TextPad Associations entry so it points to the previous association. E.g. if ".aaa" was previously associated with NotePad, its existing Registry entry will be "txtfile". So, instead of:
".aaa"=""
one would use:
".aaa"="txtfile"
under the HKCU\Software\Helios\TextPad 4\Associations branch.
Note 3: The same registry file should probably work under other windows versions, but e.g., under Windows 98 the first line must be "REGEDIT4".
====== BEGIN Windows XP .reg file to assoc. .aaa w/ TextPad =====
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.aaa]
@="TextPad.aaa"
[HKEY_CURRENT_USER\Software\Helios\TextPad 4\Associations]
".aaa"=""
[HKEY_CLASSES_ROOT\TextPad.aaa]
@="aaa type description"
[HKEY_CLASSES_ROOT\TextPad.aaa\DefaultIcon]
@="\"C:\\Program Files\\TextPad 4\\TextPad.exe\",1"
[HKEY_CLASSES_ROOT\TextPad.aaa\shell]
@=""
[HKEY_CLASSES_ROOT\TextPad.aaa\shell\open]
@=""
[HKEY_CLASSES_ROOT\TextPad.aaa\shell\open\command]
@="\"C:\\Program Files\\TextPad 4\\TextPad.exe\" -s"
[HKEY_CLASSES_ROOT\TextPad.aaa\shell\open\ddeexec]
@="[open(\"%1\")]"
[HKEY_CLASSES_ROOT\TextPad.aaa\shell\open\ddeexec\application]
@="TextPad"
[HKEY_CLASSES_ROOT\TextPad.aaa\shell\open\ddeexec\topic]
@="system"
[HKEY_CLASSES_ROOT\TextPad.aaa\shell\print]
[HKEY_CLASSES_ROOT\TextPad.aaa\shell\print\command]
@="\"C:\\Program Files\\TextPad 4\\TextPad.exe\" -s -p \"%1\""
[HKEY_CLASSES_ROOT\TextPad.aaa\shell\printto]
[HKEY_CLASSES_ROOT\TextPad.aaa\shell\printto\command]
@="\"C:\\Program Files\\TextPad 4\\TextPad.exe\" -s -pt \"%1\" \"%2\" \"%3\" \"%4\""
====== END WinXP .reg file - note last empty line =====