Solved

Register COM with Limitied

Posted on 2014-01-08
7
423 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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

One of the frequent problems with the installations is when some file or registry entry is not removed from the system upon un-installation of the product. Clean removal is always highly desirable. One major reason for that is badly authored inst…
Installations often have prerequisites, such as “Microsoft .Net framework is required for this product”. The usual implementation in MSI installations is system search for a particular registry setting representing the required prerequisite, followe…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now