When could ShellExecute fail? (Delphi) -


I am planning to use ShellExecute for updater of applications written in Delphi 2007, I was thinking ShellExecute will work most with Win computer or if it can be easily failed due to some user permission or something like that.

to

comment

Because ShellExecute can execute execution of shell extensions (data source, context menu operators, verb implementation) which is active by using component object model (COM), COM should be started before ShellExecute Shell extensions require the Com Single-Threaded Apartment (STA) type. In that case, the COM as shown here should be started as follows:

  CoInitializeEx (NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE)  

As Ken Lang Alred has been suggested, what you want to execute, you may need administrative rights.


Comments

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -