Hi there, I'm writing an installer using Wix, and we have an interesting
scenario. Our application has two DLLs, one is the main DLL (which gets
updated fairly often) and the other is a resource only DLL (which is static,
for the most part). We'd prefer not to ship the latter DLL during our
updates since it doesn't actually change. So, there are two things we need
to do:

1. Not remove ResourceDLL when upgrading to a newer version.
2. Tie ResourceDLL to the newer version so that when the application is
uninstalled, it will also be cleaned up appropriately.

Right now, we have ResourceDLL and MainDLL as two separate components and
features, i.e.

<Component Id="MainComp" Guid="Guid1">
   <File Id="main" Name="main.dll" DiskId="1" Source="$(
var.ReleaseDirectory)\main.dll" Vital="yes" />
</Component>
<Component Id="ResourceComp" Guid="Guid2">
   <File Id="resource" Name="resource.dll" DiskId="1" Source="$(
var.ReleaseDirectory)\resource.dll" Vital="yes" />
</Component>

<Feature Id="MainFeature" Title="Main Feature Level="1">
     <ComponentRef Id="MainComp" />
</Feature>
<Feature Id="ResourceFeature" Title="ResourceFeature Level="1">
     <ComponentRef Id="ResourceComp" />
</Feature>

Then, in the UpgradeVersion portion of the Upgrade element, we specify
RemoveFeatures="MainComp" when upgrading to a newer version. This, I
believe, satisfies our first condition of not removing ResourceDLL when
upgrading to a newer version of the application. However, how do I associate
ResourceDLL with the newer install? Does MSI handle this automagically, or
is there something I have to do to ensure that ResourceDLL gets removed
appropriately during an uninstall of the new version?

Thanks,
Aaron
-------------------------------------------------------------------------
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