Solved

RTF association problem in Registry.

Posted on 1997-09-25
5
455 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 200 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now