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
Solved

RTF association problem in Registry.

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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Suggested Solutions

Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

808 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