Solved

Register COM with Limitied

Posted on 2014-01-08
7
436 Views
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?
0
Comment
Question by:Silas2
  • 4
  • 3
7 Comments
 
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".
0
 

Author Comment

by:Silas2
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?
0
 
LVL 40

Accepted Solution

by:
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.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

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

Author Comment

by:Silas2
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?
0
 
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).
0
 

Author Comment

by:Silas2
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.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

685 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