The fact that you are trying to do this indicates that you are trying to break 
the component rules that says to never install two components sharing the name 
and target location.

What you really want to do is have an identical component in both the MSI's 
that I presume you have. That will allow Windows Installer to properly keep 
track of reference counting for instance.

Imagine the following scenario:
1. The user installs the first product that contains your GAC assembly and the 
assembly is registered.
2. The user installs your product that finds the assembly already in GAC and 
does not try to install it a second time.
3. The user uninstalls the first product and the assembly gets removed from GAC.
4. The user tries to run your application that fails because the required 
assembly is no longer in GAC.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Schmid
Sent: Monday, April 09, 2007 8:52 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] detect installed .net assembly

How do I figure out with wix3 whether a particular .net assembly is already
installed (and registered in the GAC)? I'd like to write a condition to not
install an assembly if the user has it already installed.

Thanks,

Patrick Schmid


-------------------------------------------------------------------------
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

-------------------------------------------------------------------------
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