Re: How to register my application

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



There is no concept of "registering" an application unless it is automation-enabled.

The rest is just "installing" it.

The problem with mechanisms that don't involve installers is that you can't really know if
you have the right collection of DLLs. This is more than the MFC and C runtime libraries;
a full-blown app might be using a couple dozen DLLs, many of which are considered
"redistributable". The complications arise because they come in suites; so you have to
have version N of DLL A, which requires version M of DLL B, and both require version K of
DLL C. Installers make sure that the suites are consistent, both internally consistent
with each other and consistent with the version of the runtime you use, whether that
runtime is statically linked or dynamically linked.

Trying to figure out how to get all the Registry entries created to get something in the
Add/Remove program mechanism, and make sure that it is going to be handled across all
possible releases of the operating system, gets to be quite challenging.

I've written installers. Years ago, when they were, relatively speaking, easy to write.
Today they are *much* harder to write.

But the bottom line is that the 200K is there because you can't assume that the stuff you
need is already installed, or that the right versions of it are installed, so it includes
that stuff. If you just copy the .exe and/or .dll files of your own, you may find that
you have a support nightmare as the many variations of the many DLLs already present on
the target machine refuse to behave in the way your code presumes they will.

I've been on the wrong side of tech support calls when this happens, and it isn't a pretty
place to be. These days, I tell my clients that if they don't use an installer, I can't
help them support in the field. Even at my outrageous rates, it isn't worth the hassle.
joe


On 4 Oct 2006 23:17:51 -0700, anup.kataria@xxxxxxxxx wrote:

I have a application I want to register that application with the
current operating system.

I do not wish to use Installationshields or anything else. because It
is a downloadable instance and using installation shields will increase
the size by 200KB.

I wish to do that one programattically using VC++. I wish to get the
application to the program file list and get the application in the add
remove programs


Can any body guide me ?


Thanks
Anup
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: How to register my application
    ... have version N of DLL A, which requires version M of DLL B, and both require version K of ... DLL C. Installers make sure that the suites are consistent, ... Trying to figure out how to get all the Registry entries created to get something in the ... I've been on the wrong side of tech support calls when this happens, ...
    (microsoft.public.vc.mfc)
  • Re: .NET, a technical question
    ... COM was also a big cause of DLL hell. ... and with proper file versioning there shouldn't have been any ... An ill-behaved installers misdemeanours could be ...
    (borland.public.delphi.non-technical)
  • Re: Registering COM DLLs in Set projects
    ... I assume that there is some way that I can look at / test a DLL to see ... In the past most installers have called DllRegisterServer when ... these keys to HKEY_CURRENT_USER instead. ... set them to self register and warn if the user has inadequate permissions. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Setup & Deployment
    ... You could create an installer for this dll only. ... If you want to support ... the installers for a full product lifecycle, ... consider WiX for creating your installers. ...
    (microsoft.public.dotnet.general)