473,372 Members | 1,198 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,372 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 1133
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.