473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How do I script the registration of .NET components used by VB6?

My VB6 program is using an increasing number of .NET components. It's
becoming a distribution nightmare.

When I send out an update of the software, the new .NET DLL's are not
getting registered in the GAC, so problems I've solved aren't being solved
for my customers.

My update routine calls GACUtil -- if it can find it. MS has buried it in
different places depending on the version(s) of the Framework that have been
installed. On other systems, GACUtil doesn't seem to exist. So I've
distributed that -- not sure if I'm supposed to, but I've got to make this
thing WORK! Even so, I'm about to connect to a bunch of machines at one
client's offices and fix this by hand.

Our development team has put too many hundred hours into the .NET stuff to
abandon it -- especially if this really is the wave of the future on MS
platforms. And updating the older program to .NET would take too many
thousands of hours to be a good solution -- this year at least.

How do I install this stuff so it works and I don't become a full-time
software installer?
--
Daniel Wilson
Senior Software Solutions Developer
Embtrak Development Team
http://www.Embtrak.com
DVBrown Company

Jul 21 '05 #1
4 1134
Daniel,
On other systems, GACUtil doesn't seem to exist. So I've
distributed that -- not sure if I'm supposed to,


No, the recommendation is to use MSI instead. It supports installing
assemblies into the GAC.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #2

"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:eB*************@TK2MSFTNGP14.phx.gbl...
Daniel,
On other systems, GACUtil doesn't seem to exist. So I've
distributed that -- not sure if I'm supposed to,


No, the recommendation is to use MSI instead. It supports installing
assemblies into the GAC.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


Thanks, Mattias. Can you suggest something to create MSI install sets that
will actually:
1. install in the GAC and
2. register w/ RegAsm?

Wise for Windows Installer will do the former, but not the latter. That
means that COM programs can't create the thing.

Also, for updates ... am I supposed to build an install set every time I
roll out a modification? And then is the client supposed to uninstall &
reinstall every time?

Thanks.

dwilson
Jul 21 '05 #3
Daniel Wilson wrote:
When I send out an update of the software, the new .NET
DLL's are not getting registered in the GAC, so problems
I've solved aren't being solved for my customers. [...] How do I install this stuff so it works and I don't
become a full-time software installer?


Instead of putting your assemblies in the GAC, if they are
only going to be used by your application via COM, you could
register them using the /codebase switch (or creating the
equivalent registry value) so that they can reside anywhere,
including your application's install folder. This will also
simplify the update process since you would only need to
overwrite the files.
--

// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net
Jul 21 '05 #4
Daniel,
Thanks, Mattias. Can you suggest something to create MSI install sets that
will actually:
1. install in the GAC and
2. register w/ RegAsm?


No I can't, sorry, I don't know enough about MSI stuff. But I thought
VS setup projects supported this.


Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Phil Powell | last post by:
Where can I find an online PHP form validator script library to use? I have tried hacking the one here at work for weeks now and it's getting more and more impossible to customize, especially now...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
0
by: Jeff S | last post by:
I'm trying to more fully understand how .NET gets us out of dll hell by more clearly understanding what goes into the manifest and contrasting that with and what life was like before the manifest....
7
by: dm4714 | last post by:
Hi -- does anyone know of any good VB.NET software registration, protection and activation components. I guess I'm looking for something similar to http://www.ionworx.com/solutions.html
3
by: J L | last post by:
I would like to create a demo version of my product by having a "registration" component that would allow either a time limit or number of executions use for demo purposes and then force the user...
4
by: Daniel Wilson | last post by:
My VB6 program is using an increasing number of .NET components. It's becoming a distribution nightmare. When I send out an update of the software, the new .NET DLL's are not getting registered...
4
by: Ngoc | last post by:
I created a form, cabreg.asp, with a "Send" button and cdosys_form.asp script. However, I got the message "Page cannot be displayed" Please help and here are my files ---- CABREG.ASP ----- ...
9
by: Jerim79 | last post by:
I am no PHP programmer. At my current job I made it known that I was no PHP programmer during the interview. Still they have given me a script to write with the understanding that it will take me a...
5
by: silmana | last post by:
hello, i have this problem that i cannot bound the registration script to the login script, what i mean is that when i register, i cannot login in the login script although the information comes to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.