?
Solved

RTF association problem in Registry.

Posted on 1997-09-25
5
Medium Priority
?
515 Views
Last Modified: 2013-12-29
The program that I am creating requires an RTF association with a word processor in the Windows Registry. Most of the time, the RTF extension is associated with Word For Windows. However, occasionally the user's might be running Microsoft Works, Word Perfect, Wordpad, or other Word processors.

The problem is that the RTF association does not always exist in the registry and I need to create this association depending on which word processor they have.

I attempted to force everyone to associate RTF with wordpad, however wordpad did not open the RTF file correctly every time. So unless there is a patch for wordpad to make sure that the RTF always works, I will require a list of the registry keys that I need for each wordprocessor.
0
Comment
Question by:dracul
  • 3
  • 2
5 Comments
 
LVL 14

Accepted Solution

by:
smeebud earned 400 total points
ID: 1697251
Give this a look and tell me if you need more.
------
[HKEY_CLASSES_ROOT\rtffile]
@="Rich Text Document"

[HKEY_CLASSES_ROOT\rtffile\DefaultIcon]
@=""

[HKEY_CLASSES_ROOT\rtffile\shell]

[HKEY_CLASSES_ROOT\rtffile\shell\open]

[HKEY_CLASSES_ROOT\rtffile\shell\open\command]
@=""

[HKEY_CLASSES_ROOT\rtffile\shell\print]

[HKEY_CLASSES_ROOT\rtffile\shell\print\command]
@=""

[HKEY_CLASSES_ROOT\rtffile\shell\printto]

[HKEY_CLASSES_ROOT\rtffile\shell\printto\command]
@=""

[HKEY_CLASSES_ROOT\rtffile\CLSID]
@="{73FDDC80-AEA9-101A-98A7-00AA00374959}"
0
 

Author Comment

by:dracul
ID: 1697252
Thanks for the attempt, however I already have this information and require more on the lines below:

What I require is either a PATCH for wordpad so that RTF files are always opened correctly, which they currently do not,

OR

A listing of the registry keys for the RTF associations for MS WORD, MS WORKS, WORDSTAR, WORD PERFECT, and other major wordprocessors.
0
 
LVL 14

Expert Comment

by:smeebud
ID: 1697253
OK,
1st make sure your wordpad extentions have an association with .rtf;
If you copy everything between the lines, starting with REGEDIT4,
AND PAST THAT TO NOTPAD OR ANY TEXT EDITOR, Then name it wordpad1.reg for one and wordpad2.reg, you can double click on them and it will enter this information.
Backup your registry 1st.
WRPV3.ZIP is the Best and easiest Backup/Restore I've Seen. Go To: http://www.webdev.net/orca/system.html Search WRP
------Registry
REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\WordPad]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\WordPad\Options]
"WordSel"=dword:00000000
"Units"=dword:00000000
"Maximized"=dword:00000001
"FrameRect"=hex:58,00,00,00,58,00,00,00,38,02,00,00,99,01,00,00
"PageMargin"=hex:c1,01,00,00,c1,01,00,00,c1,01,00,00,c1,01,00,00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\WordPad\Text]
"Layout"=hex:01,00,00,00,08,00,00,e8,00,00,01,00,00,00,00,00,00,00,00,00,00,00,\
  fe,ff,ff,ff,fe,ff,ff,ff,00,00,04,e8,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,fe,ff,ff,ff,fe,ff,ff,ff,00,00,01,e8,00,00,01,00,00,00,00,00,00,00,00,00,\
  00,00,ff,ff,ff,ff,ff,ff,ff,ff,00,00,1b,e8,00,00,01,00,00,00,00,00,00,00,01,\
  00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,05,00,00,00,00,00,00,e8,00,00,00,00,00,00,\
  04,e8,00,00,00,00,00,00,1e,e8,00,00,01,00,00,00,00,00,00,00,01,00,00,00,ff,\
  ff,ff,ff,ff,ff,ff,ff,01,00,00,00,00,00,1c,e8,00,00,01,00,00,00,00,00,00,00,\
  00,00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,01,00,00,00,00,00,1d,e8,00,00,01,00,00,\
  00,00,00,00,00,00,00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,01,00,00,00,00,00,05,e8,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,00,00
"LayoutAux"=hex:01,00,00,00,00,00
"Wrap"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\WordPad\RTF]
"Layout"=hex:01,00,00,00,08,00,00,e8,00,00,01,00,00,00,00,00,00,00,00,00,00,00,\
  fe,ff,ff,ff,fe,ff,ff,ff,00,00,04,e8,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,fe,ff,ff,ff,fe,ff,ff,ff,00,00,01,e8,00,00,01,00,00,00,00,00,00,00,00,00,\
  00,00,ff,ff,ff,ff,ff,ff,ff,ff,00,00,1b,e8,00,00,01,00,00,00,00,00,00,00,01,\
  00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,05,00,00,00,00,00,00,e8,00,00,00,00,00,00,\
  04,e8,00,00,00,00,00,00,1e,e8,00,00,01,00,00,00,00,00,00,00,01,00,00,00,ff,\
  ff,ff,ff,ff,ff,ff,ff,01,00,00,00,00,00,1c,e8,00,00,01,00,00,00,00,00,00,00,\
  00,00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,01,00,00,00,00,00,1d,e8,00,00,01,00,00,\
  00,00,00,00,00,00,00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,01,00,00,00,00,00,05,e8,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,00,00
"LayoutAux"=hex:01,00,00,00,00,00
"Wrap"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\WordPad\Word6]
"Layout"=hex:01,00,00,00,08,00,00,e8,00,00,01,00,00,00,00,00,00,00,00,00,00,00,\
  fe,ff,ff,ff,fe,ff,ff,ff,00,00,04,e8,00,00,01,00,00,00,00,00,00,00,00,00,00,\
  00,fe,ff,ff,ff,1c,00,00,00,00,00,01,e8,00,00,01,00,00,00,00,00,00,00,00,00,\
  00,00,ff,ff,ff,ff,ff,ff,ff,ff,00,00,1b,e8,00,00,01,00,00,00,00,00,00,00,01,\
  00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,05,00,00,00,00,00,00,e8,00,00,00,00,00,00,\
  04,e8,00,00,00,00,00,00,1e,e8,00,00,01,00,00,00,00,00,00,00,01,00,00,00,ff,\
  ff,ff,ff,ff,ff,ff,ff,01,00,00,00,00,00,1c,e8,00,00,01,00,00,00,00,00,00,00,\
  00,00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,01,00,00,00,00,00,1d,e8,00,00,01,00,00,\
  00,00,00,00,00,00,00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,01,00,00,00,00,00,05,e8,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,00,00
"LayoutAux"=hex:01,00,00,00,00,00
"Wrap"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\WordPad\Write]
"Layout"=hex:01,00,00,00,08,00,00,e8,00,00,01,00,00,00,00,00,00,00,00,00,00,00,\
  fe,ff,ff,ff,fe,ff,ff,ff,00,00,04,e8,00,00,01,00,00,00,00,00,00,00,00,00,00,\
  00,fe,ff,ff,ff,1c,00,00,00,00,00,01,e8,00,00,01,00,00,00,00,00,00,00,00,00,\
  00,00,ff,ff,ff,ff,ff,ff,ff,ff,00,00,1b,e8,00,00,01,00,00,00,00,00,00,00,01,\
  00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,05,00,00,00,00,00,00,e8,00,00,00,00,00,00,\
  04,e8,00,00,00,00,00,00,1e,e8,00,00,01,00,00,00,00,00,00,00,01,00,00,00,ff,\
  ff,ff,ff,ff,ff,ff,ff,01,00,00,00,00,00,1c,e8,00,00,01,00,00,00,00,00,00,00,\
  00,00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,01,00,00,00,00,00,1d,e8,00,00,01,00,00,\
  00,00,00,00,00,00,00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,01,00,00,00,00,00,05,e8,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,00,00
"LayoutAux"=hex:01,00,00,00,00,00
"Wrap"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\WordPad\IP]
"Layout"=hex:01,00,00,00,00,00
"LayoutAux"=hex:01,00,00,00,00,00
"Wrap"=dword:00000002

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\WordPad\Recent File List]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\WordPad\Settings]
"PreviewPages"=dword:00000001
----------------Wordpad.ini
REGEDIT4

[HKEY_CURRENT_USER\Software\WORDPAD.INI]

[HKEY_CURRENT_USER\Software\WORDPAD.INI\Options]
"FrameRect"=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"PageMargin"=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[HKEY_CURRENT_USER\Software\WORDPAD.INI\Text]
"Layout"=hex:01,00,00,00,00,00
"LayoutAux"=hex:01,00,00,00,00,00

[HKEY_CURRENT_USER\Software\WORDPAD.INI\RTF]
"Layout"=hex:01,00,00,00,00,00
"LayoutAux"=hex:01,00,00,00,00,00

[HKEY_CURRENT_USER\Software\WORDPAD.INI\Word6]
"Layout"=hex:01,00,00,00,00,00
"LayoutAux"=hex:01,00,00,00,00,00

[HKEY_CURRENT_USER\Software\WORDPAD.INI\Write]
"Layout"=hex:01,00,00,00,00,00
"LayoutAux"=hex:01,00,00,00,00,00

[HKEY_CURRENT_USER\Software\WORDPAD.INI\IP]
"Layout"=hex:01,00,00,00,00,00
"LayoutAux"=hex:01,00,00,00,00,00
-------------------

0
 

Author Comment

by:dracul
ID: 1697254
Thanks for your help Smeebud, however we will need to put more effort and analysis into the problem before we start making changes that big to our clients registry.

Kinds Regards,
0
 
LVL 14

Expert Comment

by:smeebud
ID: 1697255
dracul,
If your computer is set up the way you want it to work, then the registry entries will be in your registry. All you would have to do is export all the relevent keys. As you know double clicking and export will enter or import thos settings. So it would be a simple matter to copy the exports and enter those reg changes to your clients.
As long as you have your clients "system.dat and user.dat" saved in another directory, or better to floppy, if something goes wrong all you have to do is replace those .dat files.
While we are on the subject:
THIS IS WHERE TO GET WRPV3.ZIP (The Best Backup/Retsore I've Seen)Click the Search Button and enter WRP
http://www.webdev.net/orca/system.html

Leet me know if I can help.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article covers five tools all IT professionals should know about, as they up productivity by a great deal!
It is a real story and is one of my scariest tech experiences. Most users think that IT experts like us know how to fix all computer problems. However, if there is a time constraint and you MUST not fail the task or you will lose your job, a simple …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question