all groups > visual studio .net setup > july 2006 >
You're in the

visual studio .net setup

group:

Installing Assemblies and Registering OCX


Installing Assemblies and Registering OCX BK
7/28/2006 10:31:02 AM
visual studio .net setup: 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.

Re: Installing Assemblies and Registering OCX Phil Wilson
7/31/2006 4:37:16 PM
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]
----
[quoted text, click to view]

Re: Installing Assemblies and Registering OCX BK
8/1/2006 6:11:02 AM
Thanks. I got it to work. I needed a setup becuase my data folders are
about 400 MB and I did not trust an XCOPY.

Do you know how I can display the filename being installed/copied below the
progress bar? Since it is a very long intsalltion, I would like to display
some more information.

In general - Visual Studio + ORCA works for me becuase most of our
deployments are in-house (and it is "free")

Regards.


[quoted text, click to view]
Re: Installing Assemblies and Registering OCX Phil Wilson
8/2/2006 10:06:54 AM
That's done with the ActionData event, although I've never put one together
with Orca.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/installfiles_action.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/actiondata_controlevent.asp?frame=true
--
Phil Wilson [MVP Windows Installer]
----
[quoted text, click to view]

AddThis Social Bookmark Button