The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 icons for *.OPJ
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

coll@inia.

Spain
125 Posts

Posted - 01/01/2001 :  4:53:26 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Is there any way to change permanently an icon for the graph files *.opj? I can changed during the sesion but it is restored when the computer is rebooted. How can I made the changes permanent? I would like to change it to an Origin independent icon to make it more visible. Thanks, julio

Mike

USA
357 Posts

Posted - 01/02/2001 :  3:33:47 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
What you want to do is not so easy. I tried to change the icon through Folder Options from the Windows Start menu, but encountered the same problem that you did. When Windows is rebooted, the "little blue graph" icon is reassociated with the OPJ extension.

It seems that changing this default icon requires editing the Registry. Perhaps some of our Origin users could offer some suggestions.

Mike
Go to Top of Page

greg

USA
1380 Posts

Posted - 01/03/2001 :  09:47:38 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
What happened?

Actually, it isn't true that rebooting restores the icon. It is restored as soon as you run Origin - you just don't see it yet.
Like many Windows applications, Origin sets up certain Registry keys on Startup so that Windows features like drag-and-drop and OLE instancing will work properly. The specific key that handles the OPJ, ORG and OGG file icon is in HKEY_CLASSES_ROOT\Origin50.Graph\DefaultIcon for Origin 5.0, 6.0 and 6.1. This key's value will point to your EXE and adds information about which icon to use. For example,

C:\Program Files\Origin\Origin61.exe,2


The 2nd icon is the one we normally see while the zeroth icon is the standard EXE icon. While this particular key isn't necessary to operation, it is updated along with the other keys whenever Origin starts.

So what does Windows do?

When Windows starts, it caches icons used by file types in memory. (Actually, it does a poor job of maintaining this cache and programmers at Microsoft wrote 'Tweak' to fix some problems that occur with this cache.) You can edit this cache using the Explorer applet that handles File Types. (This is probably where coll@inia changed the icon.) The applet does two things:
  1. Changes the Registry Keys
  2. Updates the internal cache (which tells Explorer to redraw)

You can edit the Registry keys either manually or using a REG file, but the cache does not get updated (unless you also run 'Tweak').

You also 'edit' the Registry when you run Origin, but the cache does not update here either.


Any 'solution' to this problem would have to involve a third-party application of some kind (Explorer's Edit File Types applet, 'Tweak' or ????) which runs immediately after Origin starts and not only changes the registry key, but also updates the internal cache.

Go to Top of Page

greg

USA
1380 Posts

Posted - 01/03/2001 :  09:59:54 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Late breaking news ...
If you put an exported REG file (with the edited version of the DefaultIcon key) in your Startup folder before the GUI part of Explorer runs, then the cache is updated and you will see your custom icon in Explorer if you start Explorer before starting Origin. This works for Windows 95, but may not work in other versions.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000