Solved

RTF association problem in Registry.

Posted on 1997-09-25
5
459 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
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

Being driven mad by email signature updates?

Having to make a change to your users’ email signatures, yet again? Feel like your head is going to explode? Rely on an Exclaimer email signature management solution to make the process simple!

Question has a verified solution.

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

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
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). …

920 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

15 Experts available now in Live!

Get 1:1 Help Now