Jump to content

Recommended Posts

Posted

Hi,

I install Open Office from cmdlines.txt (with the help of XPlode) and since it doesn't associate itself with file types, I created a .reg file for this. The reg key imported are HKEY_CLASSES_ROOT\.sxw and others.

If I'm logged in with my account, the association seems to work. But if I'm logged with someone else, there is no association!!!

<Me> (admin) have HKEY_CLASSES_ROOT\.sxw but not other (non admin) accounts!!!!

Why is it so???

Thanx


Posted

Modify your HIVECLS.INF file.

Here's an example using .ini files.

HKCR,".ini","",0x00000000,"inifile"

HKCR,"inifile","",0x00000002,"Configuration Settings"
HKCR,"inifile\DefaultIcon","",0x00020002,"%SystemRoot%\System32\shell32.dll,-151"
HKCR,"inifile\shell",,0x00000012
HKCR,"inifile\shell\open",,0x00000012
HKCR,"inifile\shell\open\command","",0x00020002,"%SystemRoot%\System32\NOTEPAD.EXE %1"

For your sxw files, do the following:

  • Replace .ini with .sxw.
  • Replace inifile with sxwfile.
  • Replace "Configuration Settings" with a proper description of your file type.
  • On the DefaultIcon line, replace "%SystemRoot%\System32\shell32.dll,-151" with the path to the icon for your file type.
  • Replace "%SystemRoot%\System32\NOTEPAD.EXE %1" with the execution path of the application used to open your file type.

Posted
Hi,

I install Open Office from cmdlines.txt (with the help of XPlode) and since it doesn't associate itself with file types, I created a .reg file for this. The reg key imported are HKEY_CLASSES_ROOT\.sxw and others.

If I'm logged in with my account, the association seems to work. But if I'm logged with someone else, there is no association!!!

<Me> (admin) have HKEY_CLASSES_ROOT\.sxw but not other (non admin) accounts!!!!

Why is it so???

Thanx

Have you checked the permissions on the registry keys? Don't see why it wouldn't work for all users, but you may have done something to change them.

Posted
Modify your HIVECLS.INF file.

Here's an example using .ini files.

HKCR,".ini","",0x00000000,"inifile"

HKCR,"inifile","",0x00000002,"Configuration Settings"
HKCR,"inifile\DefaultIcon","",0x00020002,"%SystemRoot%\System32\shell32.dll,-151"
HKCR,"inifile\shell",,0x00000012
HKCR,"inifile\shell\open",,0x00000012
HKCR,"inifile\shell\open\command","",0x00020002,"%SystemRoot%\System32\NOTEPAD.EXE %1"

For your sxw files, do the following:

  • Replace .ini with .sxw.
  • Replace inifile with sxwfile.
  • Replace "Configuration Settings" with a proper description of your file type.
  • On the DefaultIcon line, replace "%SystemRoot%\System32\shell32.dll,-151" with the path to the icon for your file type.
  • Replace "%SystemRoot%\System32\NOTEPAD.EXE %1" with the execution path of the application used to open your file type.

You may look at the reg file I created for OpenOffice file association on this thread. As you may see, it is quite long...:P I also prefer it as a regfile/inf so one could choose not to import it...

Thanx for the feedback anyway...

Have you checked the permissions on the registry keys? Don't see why it wouldn't work for all users, but you may have done something to change them.

I've set permission for "Everybody" on that key but whatever I do I just can't see it as a normal user...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...