I am not sure is whether this is a exactly shell question but if not, I am
hoping someone here can point me in the right direction because I am at a bit
of a loss.
I have an application that needs to launch an html file in the users default
I use ShellExecuteEx with NULL as the verb. Everything works fine except for
with one customer who reports that he is using Vista and it does not launch
the file. It works for him in XP. It works for us, and other customers, in
In his case, he receives a message saying that there is no program
associated with the file extension, the browser is not launched and
Shellexecute returns NULL.
Re-associating .html to Internet Explorer (his only browser) does not help.
If he associates .html to notepad.exe, everything works. The file is opened
His registry settings for HKCU\.html and htmlfile seem to be correct.
We have had him try a separate Shellexecute utility
) to rule out some anomaly with our exe. No luck there either.
Further testing with the ShellExecute verbs 'opennew' and 'open' also don't
work for him.
Strangely, if he right-clicks the html file in question, 'Open' is the
default verb and when it is selected , IE opens and displays the file
correctly. IE is not in protected mode when he loads the file this way.
He has tried resetting all the IE reset options.
Does anyone have any thoughts on what could be wrong or where to look?
Thanks in advance,