hi***************@gmx.at (Herfried K. Wagner [MVP]) wrote in message news:<c6************@ID-208219.news.uni-berlin.de>...
* cr***@hotmail.com (CR) scripsit: To prepare a PC for my .NET apps I have to run mdac_typ.exe,
dotnetfx.exe, and .NET setup programs for every application. Since I
have around 8 apps this adds up to 10 installs for every pc.
Is there an easier way to do this? In VB6 I was able to run 1 setup
program and that covered everything.
You'll find some links on this topic here:
<URL:http://www.google.de/groups?selm=c6o83o%24egm95%241%40ID-208219.news.uni-berlin.de>
That helps, but the real problem is that I have to do a separate
install for each application. For some reason I have to install the
specific setup program to get my Excel macro call to work.
For example suppose I have 2 programs, A and B, and they both call a
different excel macro using code like this:
Dim objExcel As Excel.Application
objExcel = New Excel.Application
objExcel.Workbooks.Open(FileName:="c:\test.xls", ReadOnly:=True)
objExcel.Run("test.xls!test.test")
If I only run dotnetfx.exe and mdac_typ.exe neither program A or B
will work. If I run a setup program for A, then A will work but not B.
When B tries to call the macro, it gets this error - "File or assembly
name Interop.Excel, or one of its dependencies was not found." This
is the part I don't understand. Why will it only work for program A
but not program B?