Page 2 of 2
Re: IContextMenu::InvokeCommand in a separate thread
Posted: 12 May 2014, 09:01
by crystalidea
Do you also execute 'IContextMenu::InvokeCommand' when a user does a simple double click or presses Enter on executable file?
Re: IContextMenu::InvokeCommand in a separate thread
Posted: 12 May 2014, 10:04
by Jan Rysavy
Yes, it is what Windows Explorer and Altap Salamander does.
Edit: it is possible to execute from another process -
http://www.altap.cz/salamander/help/sal ... ion_gener/ - Open files through salopen.exe (it bypasses shell extensions errors).
But I would not recommend this option when you have no problem, it is a little hackish. Also note salopen.exe will execute through IContextMenu::InvokeCommand, just from different process.
Re: IContextMenu::InvokeCommand in a separate thread
Posted: 13 May 2014, 08:28
by crystalidea
Yes, it does the trick. Though works a little weird: when I clicked on .exe nothing happened, after 10-15 seconds iTunes installer appeared ...
Re: IContextMenu::InvokeCommand in a separate thread
Posted: 13 May 2014, 08:32
by Jan Rysavy
Yes, this option is not recommended.