ShellExecute from an MSI DLL

L

Lionel

Hi,

I'm currently busy writing an MSI custom action DLL, inside this DLL
I'm trying to open a file with the default associated program, if I use
standard ShellExecute call from EXE it works, but not from this DLL, is
there anything special that needs to be done to call ShellExecute from
a DLL?

Thank you very much.

Regards,

Lionel
 
C

Carl Daniel [VC++ MVP]

Lionel said:
Hi,

I'm currently busy writing an MSI custom action DLL, inside this DLL
I'm trying to open a file with the default associated program, if I
use standard ShellExecute call from EXE it works, but not from this
DLL, is there anything special that needs to be done to call
ShellExecute from a DLL?

It's not that you're calling it from a DLL, but rather rather, I suspect,
that you're calling it from inside msiexec.exe that's making it not work. I
have no idea what to do about it, but you should try asking on the windows
installer newsgroup - microsoft.public.platformsdk.msi.

-cd
 
L

Lionel

Hi,

You're absolutely correct, the DLL is called from the MSI, but I've
posted on MSI groups, they tell me post on C++ group.

Thanks,
Lionel
 
D

David Wilkinson

Lionel said:
Hi,

You're absolutely correct, the DLL is called from the MSI, but I've
posted on MSI groups, they tell me post on C++ group.

Thanks,
Lionel

Lionel:

Another suggestion: use Inno Setup :).

David Wilkinson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top