Register COM with Limitied

Posted on 2014-01-08
Last Modified: 2014-01-18
I've just switched from VS's setup project to InstallShield Limited (VS2013) , I have a COM dll which needs registering, in the old VS I had 'Regiser - vsdraCOM option' which seemed to do the trick, now I just get COM - 'Self-Registration', or 'Extract COM Information' neither of which quite looks like 'Register', and indeed neither seem to register the DLL.
Anyone know how you're supposed to register COM DLL's?
Question by:Silas2
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 40

Expert Comment

by:Vadim Rapp
ID: 39765902
The recommended way is not to self-register, but to extract COM information from the dll, and make that information part of the installation, pretty much like any other registry entry.* In VS's setup project this is accomplished by property Register=vsdrfCOM (not vsdraCOM). In Installshield the same is accomplished by "Extract COM Information".

You said that neither seem to register the DLL. What's the problem? give the details.

*) Simply speaking. In fact, support of COM registration in Windows Installer is much more extensive than just creating registry entries, but it's all "under the hood".

Author Comment

ID: 39767741
Thanks for that explanation. I've got a COM interop component (3rd party), which comes with a .reg file, do you think I have to manually add each reg entry from that file to the 'Registry' node in the InstallShield/Solution explorer?
LVL 40

Accepted Solution

Vadim Rapp earned 500 total points
ID: 39767965
> do you think I have to manually add each reg entry from that file to the 'Registry' node in the InstallShield/Solution explorer

If it does not support something like "import reg file", then yes. "Full" Installshield can, but this one may be limited.

From my own experience, (1) installations created by S&D project in VS have always been very solid (2) all attempts of VS team to "partner" with yet another vendor, like Obfuscator, Crystal Reports, and now Installshield, have always been not to the benefit of Visual Studio, to put it politely. I would either stay with S&D, or learn to use WiX.
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.


Author Comment

ID: 39768273
I would either stay with S&D, or learn to use WiX.
I am starting to agree with you...

Author Comment

ID: 39776527
Hi, I'm not sure if this is in the same topic, but I have a customerinstall.exe (from the 3rd party), and I've added it to an installer class (crudely):
      System.Diagnostics.Process.Start(sipVoipInstaller, "/S /D=" + this.Context.Parameters["AssemblyPath"]);

Open in new window

, but on  Windows 7 I'm getting a registry access complaint as if this 'out-of-process' call doesn't have the same permissions as the rest of the install, but is ok for Win8 + XP????
Any ideas how to run the Process.Start so the started process has elevated permissions?
LVL 40

Expert Comment

by:Vadim Rapp
ID: 39790777
> Any ideas how to run the Process.Start so the started process has elevated permissions?

No. I would repackage that 3rd party install (but I have the tools).

Author Comment

ID: 39790787
I'm just living with it...its not very pretty but there's only a tiny bit to do manually and it's not got a very wide distribution.

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

One of the major drawbacks of deploying applications by GPO is the complete lack of any centralized reporting. After a normal deployment, there are two ways to find out if it was successful – by looking in the event log, and by looking in the log of…
Among others, I monitor the Windows Installer zone and Installer zone. I find that many of the questions could be answered much more quickly if a Windows Installer verbose log were submitted with the question.   However, I do not always have t…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question