Solved

RTF association problem in Registry.

Posted on 1997-09-25
5
489 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 14

Accepted Solution

by:
smeebud earned 200 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

705 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