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

Unable to run a script on an assembly installed in the GAC during install.

1 view
Skip to first unread message

Troy Clevenger

unread,
Jun 27, 2003, 10:37:24 AM6/27/03
to
We install an assembly in the GAC along with registry entries so we can use
it via COM, but when we try to run a script from within the install it fails
because the assembly is not in the GAC yet. The script is run immediately
before InstallFinalize. All the other files seem to be there, including the
registry entries. But when we look at the GAC at the point of failure the
file is not there. If we take the script out and let the installation
finish the file shows up as expected. We want to make sure the script
succeeds; if it doesn't roll back the install. Any clue on how to do that?

Thanks in advance,

Troy Clevenger


Phil Wilson

unread,
Jun 27, 2003, 12:51:10 PM6/27/03
to
This seems to be one of several ways in which Windows Installer treats assemblies in the GAC unlike
anything else. I've seen this issue, hunted for a fix and given up. Most folks seem to have given up
on the MsiAssembly tables and are using custom actions with gacutil to get around this kind of
behaviour. Either that, or treat the GAC like the plague and redesign apps if necessary to avoid it.
--
Phil Wilson [MVP Windows Installer]
----
"Troy Clevenger" <tc...@purdue.edu> wrote in message news:%237IYX1L...@TK2MSFTNGP10.phx.gbl...

Kallely Sajan

unread,
Jun 27, 2003, 2:43:13 PM6/27/03
to
Is it possibile to sequence it after InstallFinalize. Obviously you will
lose the transaction effect.
--

Regards,
Sajan.

PS: Please don't send me emails, use the news room, so that others also will
be benefited.

"Troy Clevenger" <tc...@purdue.edu> wrote in message

news:#7IYX1LP...@TK2MSFTNGP10.phx.gbl...

Phil Wilson

unread,
Jun 28, 2003, 5:54:39 PM6/28/03
to
I should add that you don't need it installed in the GAC to use it from COM
clients. You can do the equivalent of what regasm does with the /codebase
option and put it in the application folder.

--
Phil Wilson [MVP Windows Installer]

"Troy Clevenger" <tc...@purdue.edu> wrote in message
news:%237IYX1L...@TK2MSFTNGP10.phx.gbl...

0 new messages