I first installed kchmviewer. I then created the file run_prog: #!/bin/sh $1 "`wine winepath -u "$2"`" I tested by running from a terminal run_prog kchmviewer c:\MyChmFile.chm This worked fine I edited the registry entry for chm.file to /usr/bin/run_prog kchmviewer %1> > Note: > While researching regedit I noticed the reference to wineprefixcreate at: > http://wiki.winehq.org/UsefulRegistryKeys > > Do you now call wineboot to update? >A windows program using ShellExecute with "open" on c:\MyChmFile.chm appears to still call HH.EXE Is it possible to override wine using HH.EXE? Last tested on clean install of rc2 James
jcfuller wrote:> I first installed kchmviewer. > > I then created the file run_prog: > #!/bin/sh > $1 "`wine winepath -u "$2"`" > > I tested by running from a terminal > run_prog kchmviewer c:\MyChmFile.chm > This worked fine > > I edited the registry entry for chm.file to > /usr/bin/run_prog kchmviewer %1 > > > > > > Note: > > While researching regedit I noticed the reference to wineprefixcreate at: > > http://wiki.winehq.org/UsefulRegistryKeys > > > > Do you now call wineboot to update? > > > > > A windows program using ShellExecute with "open" on c:\MyChmFile.chm appears to still call HH.EXE > > Is it possible to override wine using HH.EXE? > > Last tested on clean install of rc2 > > > JamesYou need to associate that file extension properly - see [HKEY_CLASSES] registry hive. It works the same as on windows.
vitamin, I assume you mean HKEY_CLASSES_ROOT? I thought I did. I have: .chm Default REG_SZ chm.file James
jcfuller wrote:> vitamin, > I assume you mean HKEY_CLASSES_ROOT?Yeah sorry. jcfuller wrote:> I thought I did. > > I have: > .chm Default REG_SZ chm.file > > JamesAnd what do you have under chm.file?
vitamin wrote:> > jcfuller wrote: > > vitamin, > > I assume you mean HKEY_CLASSES_ROOT? > > Yeah sorry. > > > jcfuller wrote: > > I thought I did. > > > > I have: > > .chm Default REG_SZ chm.file > > > > James > > And what do you have under chm.file?In my original post. James
jcfuller wrote:> > vitamin wrote: > > > > jcfuller wrote: > > > vitamin, > > > I assume you mean HKEY_CLASSES_ROOT? > > > > Yeah sorry. > > > > > > jcfuller wrote: > > > I thought I did. > > > > > > I have: > > > .chm Default REG_SZ chm.file > > > > > > James > > > > And what do you have under chm.file? > > > > In my original post. > > JamesCode: wine regedit /e - "HKEY_CLASSES_ROOT\chm.file"