Yeah, that scenario just doesn’t work right.  The problem is that Assemblies
going to the GAC aren’t committed until the very end of the install.  That
means your InstallUtil calls (assuming InstallUtil can reach into the GAC,
I’ve never tried) have to come after InstallFinalize.  That means that your
InstallUtil CustomActions can’t be part of the installation transaction so
when they fail, the install succeeds but is broken.

This is just one more example of why using InstallUtil is a “bad thing”.

My suggestion (which is rarely popular <smile/>) is to just do the right
thing the first time and save yourself the time you'll spend later trying to
manage the InstallUtil hack.

What is the CustomAction you're trying to do anyway?

----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Hidey
Sent: Wednesday, July 26, 2006 1:36 PM
To: wix-users@lists.sourceforge.net; wix-devs@lists.sourceforge.net
Subject: [WiX-devs] GAC and call Custom Action

Here is my problem everyone.  I have a msi that installs several files into
the gac.  I DO NOT create a shadow copy of these files on the file system
until my property called CREATESHADOW has a value of 1.  These assemblies
have installers in them that I need to call.  (I know managed installers in
not recommended but have to get done quickly)  When I put my custom action
in and call InstallUtilLib the file isn’t actually on the file system.  Is
there a way to have InstallUtilLib refer the file via its temporary location
that is used by the installer?  Thoughts?

Thanks everyone in advance.

John




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to