Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Running batch files after the installation

4 views
Skip to first unread message

Suds Marathe

unread,
Sep 12, 2002, 12:13:40 AM9/12/02
to
Hello,

We are currently developing an application that required
you register a number of DLL with the a .NET Utility.
(gacutil)

We have a batch file setup that automagically registers
all the relevant files, but you need to manually run this
file. This is causing problem for our testing group.

How do we run this batch file automatically using Windows
Installer 2.0 ? (Can we?)

Cheers,
Ben

Rich [Microsoft Windows Installer MVP]

unread,
Sep 12, 2002, 1:43:24 AM9/12/02
to
[Please do not mail me a copy of your followup]

"Suds Marathe" <acu...@acus.com> spake the secret code
<f6c801c25a12$c68ee580$3aef2ecf@TKMSFTNGXA09> thusly:

>We are currently developing an application that required
>you register a number of DLL with the a .NET Utility.
>(gacutil)

I believe you should use the MsiAssembly table for installing
components to the global assembly cache instead of using gacutil.
--
Ask me about my upcoming book on Direct3D from Addison-Wesley!
Direct3D Book <http://www.xmission.com/~legalize/book/>
izfree: Open source tools for Windows Installer
<http://izfree.sourceforge.net>

Phil Wilson

unread,
Sep 12, 2002, 3:41:12 PM9/12/02
to
Rich is right, there are standard tables to install assemblies in the GAC. I'm pretty sure that
gacutil isn't part of the standard redistributable framework, so you would need to put it in your
install somewhere. Plus that brings up the issue of whether you're actually allowed to redistribute
gacutil.exe. I'd also worry about the installation rolling back, so you'd need to undo your install
of the assembly. Oh, and if your run of gacutil replaced an existing assembly in the GAC, and you
rollback, how would you restore the previous one? Windows Installer is pretty good at the GAC stuff
and taking care of these issues, so you should at least give it a try.

"Suds Marathe" <acu...@acus.com> wrote in message
news:f6c801c25a12$c68ee580$3aef2ecf@TKMSFTNGXA09...

0 new messages