473,395 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

ShellExecute from an MSI DLL

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

Jan 3 '07 #1
3 1769
Lionel wrote:
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
Jan 3 '07 #2
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

Carl Daniel [VC++ MVP] wrote:
Lionel wrote:
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
Jan 4 '07 #3
Lionel wrote:
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
Jan 4 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Marcel Sammut | last post by:
Greetings, I am converting a VB6 application to .net and am having troubles trying to print a document directley to the printer. My VB6 app used the API ShellExecute method to accomplish this,...
3
by: Wiktor Zychla | last post by:
I have a problem I cannot solve. My application hosts IE activex control. I follow the standard procedure: I just aximp shdocvw.dll. Note that this gives you two files: axshdocvw.dll and...
1
by: MCzajk | last post by:
Is there a function similar to ShellExecute, which I can hook to when the program is started using Start Menu icon? MCzajk
11
by: Le, Thanh-Nhan | last post by:
Hi, Is there a same function in .Net as API shellexecute? Thanks Nhan
0
by: the_openFace | last post by:
I'm trying to display the shell's property page for various files and I'm using this code: class Win32Shell { // ... other stuff here public static extern Int32 ShellExecute( Int32 hwnd,...
0
by: the openBack | last post by:
I'm trying to display the shell's property page for various files and I'm using this code: class Win32Shell { // ... other stuff here public static extern Int32 ShellExecute( Int32 hwnd,...
0
by: David | last post by:
We have an mfc application in which we use ShellExecute to launch the browser with an initial web site. {ShellExecute( NULL, "open", "http://www.SomeWebSite.com", NULL, NULL, SW_SHOWNORMAL ) } ...
4
by: fdmaxey | last post by:
I currently start a target executable written in VB.Net from an application that uses a C-script language. I start the target executable using ShellExecute in the C-script. The target runs fine...
1
by: bugs bunny via .NET 247 | last post by:
Does anyone have actually used SetWindowsHookEx() to hook upShellExecute() so as to find what application was started bywindows or which folder is currently browsed by explorer. I knowone thing and...
2
by: John Smith | last post by:
Hi, I have an access database form with an image. I'm trying to create an onclick event on the image so that when a user clicks on the image it opens that file with the default viewer the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.