Re: Installing Assemblies and Registering OCX



There are lots of tools that can buid MSI files, Visual Studio being pretty
much the least-featured. Having said that:

Just copying files is straightforward. If you start a setup project and just
create folders off Application Folder you'll see how it works.

Running a 3rd party exe can be done with a custom action. However if it as
MSI-based setup it will not work because you can't run an MSI setup from a
VS custom action.

Assemblies get installed into the GAC in the same way as any other file in
the Visual Studio setup project's IDE, except that the GAC isn't in the
default list of visible locations on the target machine, so you'll need to
add it.

Registering an OCX - the file properties have a Register property. Set it to
vsdrfCOM.

--
Phil Wilson [MVP Windows Installer]
----
"BK" <BK@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:00AB83CE-6AA1-4C06-A453-A2D4D2411BAF@xxxxxxxxxxxxxxxx
After trying various strategies and reading many articles - I seek answers
in
this forum.

I have a VB.NET 200 Application that uses third party Mapping COM
Controls.
In addition, I have a VB6 compiled ActiveX Control.

There are no pre-requisites for installing the application - however,
there
are pre-requisites for RUNNING the Application. When I "install" the
application manually to a user machine, I carry out the following steps -
Before Launching the application.

1. Copy four folders and 7 files from the "install CD" to a newly created
folder on the target machine.

2. Run a third party Executable with a specific set of options. From a DOS
Command Prompt I run the following "mo23rt.exe /abcim". mo23rt.exe is one
of
the files that I copied over to the Hard Disk. This executable is actually
a
sort of setup created by the third party vendor using WISE Installer.

3. I Manually copy three Assemblies to the GAC (windows\assembly folder)

4. I have to register one OCX ("REGSVR32.EXE C:\SomeFolder\Legend.OCX"). I
have tried running the Command from a bath file for testing but it can't
find
the REGSVR32.EXE files sometimes. It is located in the WINDOWS\SYSTEM32
folder.

So - do you think all these steps can be SUCCESSFULLY implemented in a
setup
project? Well, if the answer is yes, could you give some pointers?

----------------

a) I have tried BootStrapper without succes
b) I have tried http://msdn2.microsoft.com/en-us/library/ms165432.aspx
"Deploying COM Components with ClickOnce " without success. I get the
following error :

Problem isolating COM reference 'MO22LegendControl': Registry key
'HKEY_CLASSES_ROOT\CLSID\{abe8f5a0-e31a-4b6a-b53d-343ae0185bb7}\InProcServer32'
is missing value '(Default)'.

That ('MO22LegendControl') is the VB6 code that I compiled into an
ActiveX -
did I miss some protocals?

Please help.

Regards.




.



Relevant Pages

  • Re: How to find a directory exists or not
    ... You're stretching what can be done with a Visual Studio setup project. ... common files folder, and UserLanguageID will be 1033 or 1041 depending on ... Phil Wilson [MVP Windows Installer] ...
    (microsoft.public.dotnet.framework.setup)
  • Re: file installation order
    ... > Definitive Guide to Windows Installer ... >> modules in the setup file to copy these necessary libraries to the user's ... >> I of course need to register the OCXs when installing, ...
    (microsoft.public.dotnet.framework.setup)
  • Re: Want to run an application without installing it.
    ... Maybe whoever designed the program only wanted it to be installed by the installer. ... demands the associated DLLs and their corresponding Manifests, ... I have copied respective DLLs in my local folder instead of placing ... I have successfully register Dlls found in system32 after placing them ...
    (microsoft.public.vc.mfc)
  • Re: Want to run an application without installing it.
    ... If the app was designed to used with an installer, you are going to have trouble just ... The DLL not found is a common error caused by not having the DLLs in the right folder. ... I have successfully register Dlls found in system32 after placing them ...
    (microsoft.public.vc.mfc)
  • Want to run an application without installing it.
    ... demands the associated DLLs and their corresponding Manifests, ... I have copied respective DLLs in my local folder instead of placing ... I have used InCtrl to get complete report of installer activity. ... I have successfully register Dlls found in system32 after placing them ...
    (microsoft.public.vc.mfc)

Loading