Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

COM Deployment for VISTA

Tags:

windows

com

What is the COM interface that need to be implemented in order to deploy COM dll in a vista/win7 machine. I heard that there is something to deal with UAC accounts with COM, but I could not find MSDN page for this, Please help.

Thank you

like image 893
Nimo Avatar asked Dec 21 '25 00:12

Nimo


1 Answers

All you have to do to register a COM object is write the appropriate keys to the registry. There is no special interface to implement on Vista; however you need to make sure your installer has Administrative rights so it can actually write to the registry. By default programs will run as medium integrity level applications, which can't write to HKLM and HKCR (in general). If you install using MSI (look into the WiX toolkit; it makes registering COM objects easy) then the OS will automatically prompt the user for elevation at install time.

like image 84
i_am_jorf Avatar answered Dec 22 '25 19:12

i_am_jorf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!