I'm beginning to sound like an echo in here....
 
What's wrong with http://windowssdk.msdn.microsoft.com/en-us/library/aa372360.aspx  and using FileVersion to force an in-place update of your assembly into the GAC.
 
If it's good enough for InstallShield ;=) .....
 

Phil Wilson
(949)639-1680

 


From: Frank Tse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 10, 2006 12:48 PM
To: 'Bob Arnson'
Cc: Wilson, Phil; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] how to enforce assembly to be gac'd even when thereisalready a copy in the gac

I think what I should do is to have a launch condition that if it sees the same assembly already in GAC, the setup should not proceed.  It is because even if setup succeeded, it would not install the DLL in setup but kept the current DLL in GAC.  However I have dug around and don’t know how to do the launch condition…..  <FileSearch> element does not seem to have a way to search in GAC.

 

If I could implement the launch condition, the option of not failing during uninstall isn’t necessary to me.

 

Thanks,

Frank

 

From: Bob Arnson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 10, 2006 8:46 AM
To: Frank Tse
Cc: 'Wilson, Phil'; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] how to enforce assembly to be gac'd even when thereisalready a copy in the gac

 

Frank Tse wrote:

The current behavior is that when the dll was not put in GAC due to the same version already in GAC, the ngen action didn’t happen.  I have tried adding a custom action that calls ngen.exe as below.


Please don't do it that way. As written, you don't handle rollback or uninstall. Folks from the Visual Studio and WiX teams spent a lot of time to get that behavior right. You can't change how .NET treats assemblies with the same strong name but having the option to not fail on an uninstall is a reasonable feature request. Please file it and we can take a look at adding it.



-- 
 
sig://boB
 
http://bobs.org
-------------------------------------------------------------------------
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